pub enum EchMode {
Enable(EchConfig),
Grease(EchGreaseConfig),
}
Expand description
Controls how Encrypted Client Hello (ECH) is used in a client handshake.
Variants§
Enable(EchConfig)
ECH is enabled and the ClientHello will be encrypted based on the provided configuration.
Grease(EchGreaseConfig)
No ECH configuration is available but the client should act as though it were.
This is an anti-ossification measure, sometimes referred to as “GREASE”1.
Implementations§
Trait Implementations§
Source§impl From<EchGreaseConfig> for EchMode
impl From<EchGreaseConfig> for EchMode
Source§fn from(config: EchGreaseConfig) -> Self
fn from(config: EchGreaseConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EchMode
impl !RefUnwindSafe for EchMode
impl Send for EchMode
impl Sync for EchMode
impl Unpin for EchMode
impl !UnwindSafe for EchMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 128 bytes
Size for each variant:
Enable
: 128 bytesGrease
: 48 bytes