pub struct ResolvesServerCertUsingSni { /* private fields */ }展开描述
Something that resolves do different cert chains/keys based on client-supplied server 名(via SNI)。
实现§
Source§impl ResolvesServerCertUsingSni
impl ResolvesServerCertUsingSni
Sourcepub fn new() -> Self
pub fn new() -> Self
创建一个 new 并 empty (i.e., knows no certificates) resolver.
Trait 实现§
Source§impl Debug for ResolvesServerCertUsingSni
impl Debug for ResolvesServerCertUsingSni
Source§impl ResolvesServerCert for ResolvesServerCertUsingSni
impl ResolvesServerCert for ResolvesServerCertUsingSni
Source§fn resolve(&self, client_hello: ClientHello<'_>) -> Option<Arc<CertifiedKey>>
fn resolve(&self, client_hello: ClientHello<'_>) -> Option<Arc<CertifiedKey>>
Choose 一个证书 chain 并 matching key given simplified
ClientHello information. 更多信息
Source§fn only_raw_public_keys(&self) -> bool
fn only_raw_public_keys(&self) -> bool
当服务器仅支持原始公钥时返回 true
自动 Trait 实现§
impl Freeze for ResolvesServerCertUsingSni
impl !RefUnwindSafe for ResolvesServerCertUsingSni
impl Send for ResolvesServerCertUsingSni
impl Sync for ResolvesServerCertUsingSni
impl Unpin for ResolvesServerCertUsingSni
impl UnsafeUnpin for ResolvesServerCertUsingSni
impl !UnwindSafe for ResolvesServerCertUsingSni
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. 更多信息