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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)