pub struct StealthConfig {
pub spoof_navigator: bool,
pub randomize_webgl: bool,
pub randomize_canvas: bool,
pub human_behavior: bool,
pub protect_cdp: bool,
}Expand description
Feature flags controlling which stealth techniques are active.
§Example
use stygian_browser::stealth::StealthConfig;
let cfg = StealthConfig::default();
assert!(cfg.spoof_navigator);Fields§
Override navigator properties (webdriver, platform, userAgent, etc.)
randomize_webgl: boolReplace WebGL getParameter with controlled vendor/renderer strings.
randomize_canvas: boolRandomise Canvas toDataURL fingerprint (stub — needs canvas noise).
human_behavior: boolEnable human-like behaviour simulation.
protect_cdp: boolEnable CDP leak protection (remove Runtime.enable artifacts).
Implementations§
Trait Implementations§
Source§impl Clone for StealthConfig
impl Clone for StealthConfig
Source§fn clone(&self) -> StealthConfig
fn clone(&self) -> StealthConfig
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 StealthConfig
impl Debug for StealthConfig
Source§impl Default for StealthConfig
impl Default for StealthConfig
Source§impl<'de> Deserialize<'de> for StealthConfig
impl<'de> Deserialize<'de> for StealthConfig
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 StealthConfig
impl RefUnwindSafe for StealthConfig
impl Send for StealthConfig
impl Sync for StealthConfig
impl Unpin for StealthConfig
impl UnwindSafe for StealthConfig
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