pub struct EchConfig { /* private fields */ }展开描述
Configuration 用于 performing encrypted client hello.
Note: differs 从 the protocol-encoded EchConfig (EchConfigMsg)。
实现§
Source§impl EchConfig
impl EchConfig
Sourcepub fn new(
ech_config_list: EchConfigListBytes<'_>,
hpke_suites: &[&'static dyn Hpke],
) -> Result<Self, Error>
pub fn new( ech_config_list: EchConfigListBytes<'_>, hpke_suites: &[&'static dyn Hpke], ) -> Result<Self, Error>
Construct an EchConfig by selecting 一个 ECH config 从 the provided bytes , compatible with one of the given HPKE 套件解析为 true。
此 config list bytes should be sourced 从 一个 DNS-over-HTTPS lookup resolving the HTTPS
resource record 用于 the host name of the server you wish 到 connect via ECH,
并 extracting the ECH configuration 从 the ech parameter. 此 extracted bytes should
be base64 decoded 到 yield the EchConfigListBytes you provide 到 rustls.
One of the provided ECH configurations must be compatible with the HPKE provider’s supported suites 或 an error , returned.
,请参见 ech-client.rs example 用于 一个 complete example of fetching ECH configs 从 DNS.
Trait 实现§
自动 Trait 实现§
impl Freeze for EchConfig
impl !RefUnwindSafe for EchConfig
impl Send for EchConfig
impl Sync for EchConfig
impl Unpin for EchConfig
impl UnsafeUnpin for EchConfig
impl !UnwindSafe for EchConfig
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. 更多信息