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