pub struct Fingerprint {
pub extensions: &'static [ExtensionSpec],
pub shuffle_extensions: bool,
pub cipher: &'static [GreaseOrCipher],
}
Expand description
Fields§
§extensions: &'static [ExtensionSpec]
The TLS ClientHello extensions included in the fingerprint. Each ExtensionSpec
determines the nature and handling
of an extension, whether it’s a Craft extension, a native Rustls extension, or subject
to conditional inclusion based on Rustls’ defaults.
shuffle_extensions: bool
Indicates whether the list of extensions should be randomly reordered before being sent in the ClientHello message. This shuffling process is introduced to mimic BoringSSL.
cipher: &'static [GreaseOrCipher]
Specifies the list of ciphers included in the ClientHello.
Implementations§
Source§impl Fingerprint
impl Fingerprint
Sourcepub fn builder(&self) -> FingerprintBuilder
pub fn builder(&self) -> FingerprintBuilder
Creates a fingerprint builder that allow you to tweak the fingerprint and patch the client config. See also crate::ClientConfig::with_fingerprint
Trait Implementations§
Source§impl Clone for Fingerprint
impl Clone for Fingerprint
Source§fn clone(&self) -> Fingerprint
fn clone(&self) -> Fingerprint
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 Fingerprint
impl Debug for Fingerprint
Source§impl Default for Fingerprint
impl Default for Fingerprint
Source§fn default() -> Fingerprint
fn default() -> Fingerprint
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Fingerprint
impl RefUnwindSafe for Fingerprint
impl Send for Fingerprint
impl Sync for Fingerprint
impl Unpin for Fingerprint
impl UnwindSafe for Fingerprint
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