pub struct MutexCertificateResolver(pub Mutex<CertificateResolver>);Tuple Fields§
§0: Mutex<CertificateResolver>Implementations§
Source§impl MutexCertificateResolver
impl MutexCertificateResolver
Sourcepub fn names_for_sni(&self, domain: &[u8]) -> Option<Vec<String>>
pub fn names_for_sni(&self, domain: &[u8]) -> Option<Vec<String>>
Snapshot of the SAN set Sōzu would serve for domain. Acquires the
resolver lock once. Returns None when the underlying mutex is
poisoned — the caller is expected to treat poison the same as
“default cert served” (legacy fallback), mirroring resolve’s
own poison handling at the rustls hot path.
Trait Implementations§
Source§impl Debug for MutexCertificateResolver
impl Debug for MutexCertificateResolver
Source§impl Default for MutexCertificateResolver
impl Default for MutexCertificateResolver
Source§fn default() -> MutexCertificateResolver
fn default() -> MutexCertificateResolver
Returns the “default value” for a type. Read more
Source§impl ResolvesServerCert for MutexCertificateResolver
impl ResolvesServerCert for MutexCertificateResolver
Source§fn resolve(&self, client_hello: ClientHello<'_>) -> Option<Arc<CertifiedKey>>
fn resolve(&self, client_hello: ClientHello<'_>) -> Option<Arc<CertifiedKey>>
Choose a certificate chain and matching key given simplified
ClientHello information. Read more
Source§fn only_raw_public_keys(&self) -> bool
fn only_raw_public_keys(&self) -> bool
Return true when the server only supports raw public keys.
Auto Trait Implementations§
impl !Freeze for MutexCertificateResolver
impl RefUnwindSafe for MutexCertificateResolver
impl Send for MutexCertificateResolver
impl Sync for MutexCertificateResolver
impl Unpin for MutexCertificateResolver
impl UnsafeUnpin for MutexCertificateResolver
impl UnwindSafe for MutexCertificateResolver
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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