pub struct EchGreaseConfig { /* private fields */ }展开描述
Configuration 用于 GREASE Encrypted Client Hello.
实现§
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 一个 GREASE ECH configuration.
This configuration is 用 when the client wishes 到 offer ECH 到 prevent ossification, but doesn’t have 一个 real ECH configuration 到 use 用于 the remote server. In this case 一个 placeholder 或 “GREASE”1 extension is 用.
Returns an error if the HPKE provider does not support the given 套件)。
Trait 实现§
Source§impl Clone for EchGreaseConfig
impl Clone for EchGreaseConfig
Source§fn clone(&self) -> EchGreaseConfig
fn clone(&self) -> EchGreaseConfig
返回值的副本。 更多信息
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment 从
source. 更多信息Source§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
从输入类型转换为此类型。
自动 Trait 实现§
impl Freeze for EchGreaseConfig
impl !RefUnwindSafe for EchGreaseConfig
impl Send for EchGreaseConfig
impl Sync for EchGreaseConfig
impl Unpin for EchGreaseConfig
impl UnsafeUnpin for EchGreaseConfig
impl !UnwindSafe for EchGreaseConfig
Blanket 实现§
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 从 an owned value. 更多信息