pub enum EchMode {
Enable(EchConfig),
Grease(EchGreaseConfig),
}展开描述
Controls how Encrypted Client Hello (ECH) is 用 in 一个 client handshake.
变体§
Enable(EchConfig)
ECH is enabled 并 the ClientHello , encrypted based on the provided configuration.
Grease(EchGreaseConfig)
没有可用的 ECH 配置,但客户端应像配置存在一样工作。
This 是 anti-ossification measure, sometimes referred 到 as “GREASE”1。
实现§
Source§impl EchMode
impl EchMode
Trait 实现§
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 EchMode
impl !RefUnwindSafe for EchMode
impl Send for EchMode
impl Sync for EchMode
impl Unpin for EchMode
impl UnsafeUnpin for EchMode
impl !UnwindSafe for EchMode
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. 更多信息