pub struct EchGreaseConfig { /* private fields */ }
Expand description
Configuration for GREASE Encrypted Client Hello.
Implementations§
Source§impl EchGreaseConfig
impl EchGreaseConfig
Sourcepub fn new(suite: &'static dyn Hpke, placeholder_key: HpkePublicKey) -> Self
pub fn new(suite: &'static dyn Hpke, placeholder_key: HpkePublicKey) -> Self
Construct a GREASE ECH configuration.
This configuration is used when the client wishes to offer ECH to prevent ossification, but doesn’t have a real ECH configuration to use for the remote server. In this case a placeholder or “GREASE”1 extension is used.
Returns an error if the HPKE provider does not support the given suite.
Trait Implementations§
Source§impl Clone for EchGreaseConfig
impl Clone for EchGreaseConfig
Source§fn clone(&self) -> EchGreaseConfig
fn clone(&self) -> EchGreaseConfig
Returns a copy 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 EchGreaseConfig
impl Debug for EchGreaseConfig
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 EchGreaseConfig
impl !RefUnwindSafe for EchGreaseConfig
impl Send for EchGreaseConfig
impl Sync for EchGreaseConfig
impl Unpin for EchGreaseConfig
impl !UnwindSafe for EchGreaseConfig
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: 40 bytes