Struct FingerprintSet

Source
pub struct FingerprintSet {
    pub main: Fingerprint,
    pub test_alpn_http1: Fingerprint,
    pub test_no_alpn: Fingerprint,
}
Expand description

Represents a collection of Fingerprint instances, each configured with different ALPN extensions.

Fields§

§main: Fingerprint

The default Fingerprint variant configured for HTTP/2 (h2) clients. This is the primary variant used for most scenarios and is designed to be consistent with browsers.

§test_alpn_http1: Fingerprint

A Fingerprint variant specifically tailored for clients that use HTTP/1.1 (http1). This variant is useful for testing or scenarios where HTTP/2 support is unavailable.

§test_no_alpn: Fingerprint

A Fingerprint variant without any specific ALPN settings, suitable for use with both HTTP/1.1 and non-HTTP clients. This variant provides a craftible option for testing or supporting clients where ALPN may not be applicable.

Methods from Deref<Target = Fingerprint>§

Source

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 Deref for FingerprintSet

Source§

fn deref(&self) -> &Self::Target

Provides implicit access to the FingerprintSet::main variant when a FingerprintSet is dereferenced. This allows the main variant to be used as the default when no explicit selection is made from the set.

Source§

type Target = Fingerprint

The resulting type after dereferencing.
Source§

impl Generator<FingerprintSet> for __StaticInitGeneratorFor_CHROME_108

Available on Linux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS only.
Source§

impl Generator<FingerprintSet> for __StaticInitGeneratorFor_CHROME_112

Available on Linux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS only.
Source§

impl Generator<FingerprintSet> for __StaticInitGeneratorFor_FIREFOX_105

Available on Linux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS only.
Source§

impl Generator<FingerprintSet> for __StaticInitGeneratorFor_RUSTLS_TEST

Available on Linux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS only.
Source§

impl Generator<FingerprintSet> for __StaticInitGeneratorFor_SAFARI_17_1

Available on Linux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS only.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V