pub enum ExtensionSpec {
Craft(CraftExtension),
Rustls(ClientExtension),
Keep(KeepExtension),
}
Expand description
ExtensionSpec
outlines the types of client extensions that can be used in a fingerprint specification
Variants§
Craft(CraftExtension)
A CraftExtension
represents an extension not inherently supported by Rustls or a customization not available in Rustls.
These extensions will be eventually be converted into Rustls ClientExtension
s.
Rustls(ClientExtension)
A ClientExtension
native to Rustls. Extensions specified here are directly included in the client hello message.
Keep(KeepExtension)
A KeepExtension
dictates the retention policy for extensions that are generated by Rustls by default.
It allows for specifying whether certain Rustls-generated extensions should be kept as-is, used conditionally,
or replaced with a default if not present.
Trait Implementations§
Source§impl Clone for ExtensionSpec
impl Clone for ExtensionSpec
Source§fn clone(&self) -> ExtensionSpec
fn clone(&self) -> ExtensionSpec
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 moreAuto Trait Implementations§
impl Freeze for ExtensionSpec
impl RefUnwindSafe for ExtensionSpec
impl Send for ExtensionSpec
impl Sync for ExtensionSpec
impl Unpin for ExtensionSpec
impl UnwindSafe for ExtensionSpec
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