pub struct CdpHardeningConfig {
pub enabled: bool,
pub sanitize_stacks: bool,
pub protect_console: bool,
}Expand description
Configuration for CDP leak hardening.
§Example
use stygian_browser::cdp_hardening::CdpHardeningConfig;
let cfg = CdpHardeningConfig::default();
assert!(cfg.enabled);
assert!(cfg.sanitize_stacks);
assert!(cfg.protect_console);Fields§
§enabled: boolMaster switch. When false, cdp_hardening_script returns an empty string.
sanitize_stacks: boolWhether to sanitize CDP-specific frames from Error.prototype.stack.
protect_console: boolWhether to override console.debug to defeat getter-trap-based stack inspection.
Trait Implementations§
Source§impl Clone for CdpHardeningConfig
impl Clone for CdpHardeningConfig
Source§fn clone(&self) -> CdpHardeningConfig
fn clone(&self) -> CdpHardeningConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CdpHardeningConfig
impl Debug for CdpHardeningConfig
Source§impl<'de> Deserialize<'de> for CdpHardeningConfig
impl<'de> Deserialize<'de> for CdpHardeningConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CdpHardeningConfig
impl RefUnwindSafe for CdpHardeningConfig
impl Send for CdpHardeningConfig
impl Sync for CdpHardeningConfig
impl Unpin for CdpHardeningConfig
impl UnsafeUnpin for CdpHardeningConfig
impl UnwindSafe for CdpHardeningConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more