pub enum SniResolver {
BySNI(FastHashMap<ByteString, SniResolverTarget>),
Single(SniResolverTarget),
}Available on crate feature
tls only.Expand description
ResolvesServerCert that can select the target by client SNI (Server Name Indication).
Also has an optimized mode for when there is only one target, which skips checking the SNI.
See ResolvesServerCertUsingSni for a simpler version.
Variants§
BySNI(FastHashMap<ByteString, SniResolverTarget>)
Select SniResolverTarget by SNI.
Single(SniResolverTarget)
Single SniResolverTarget.
Trait Implementations§
Source§impl Clone for SniResolver
impl Clone for SniResolver
Source§fn clone(&self) -> SniResolver
fn clone(&self) -> SniResolver
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SniResolver
impl Debug for SniResolver
Source§impl ResolvesServerCert for SniResolver
impl ResolvesServerCert for SniResolver
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 SniResolver
impl !RefUnwindSafe for SniResolver
impl Send for SniResolver
impl Sync for SniResolver
impl Unpin for SniResolver
impl !UnwindSafe for SniResolver
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