pub enum Mode {
Manual,
Random,
Noise,
Off,
Auto,
Real,
Altered,
Protect,
Empty,
Software,
Unknown,
}Expand description
Represents different modes for browser fingerprint overrides
This enum is used to control how browser fingerprint are handled and stored in the MySQL database. Each mode determines a specific strategy for managing fingerprint data.
Variants§
Manual
Manually specified fingerprint values sent into API
Random
Generates completely random fingerprint values
Noise
Adds random noise to real fingerprint values
Off
Disables fingerprint modifications
Auto
Automatically determines appropriate fingerprint values
Real
Uses real browser fingerprint values without modification
Altered
Altered appropriate fingerprint values, basically like Auto
Protect
Applies privacy-focused modifications to fingerprint (currently used only for Ports)
Empty
Returns empty or null values for fingerprint attributes
Software
Uses software mode instead of hardware mode. Used for videocard and rendering overrides
Unknown
Represents an unrecognized mode value
Trait Implementations§
source§impl<'de> Deserialize<'de> for Mode
impl<'de> Deserialize<'de> for Mode
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>,
source§impl FromStr for Mode
impl FromStr for Mode
source§fn from_str(s: &str) -> Result<Self, Self::Err>
fn from_str(s: &str) -> Result<Self, Self::Err>
Converts a string to a Mode variant
§Arguments
s- The string to convert
§Returns
Ok(Mode)- The corresponding Mode variantErr(Error)- If the string doesn’t match any known mode
§Examples
use std::str::FromStr;
let mode = Mode::from_str("real").expect("Valid mode");
assert_eq!(mode, Mode::Real);
let error = Mode::from_str("invalid").unwrap_err();
assert!(matches!(error, Error::UnknownOverrideMode(_)));impl Copy for Mode
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more