pub enum CertificateVerification {
None,
CertificateAuthority,
CertificateAuthorityAndHost,
}Expand description
Peer-certificate checks required by an SSL mode.
Variants§
None
Do not authenticate the peer certificate.
CertificateAuthority
Validate the certificate chain against configured roots.
CertificateAuthorityAndHost
Validate the certificate chain and requested hostname.
Trait Implementations§
Source§impl Clone for CertificateVerification
impl Clone for CertificateVerification
Source§fn clone(&self) -> CertificateVerification
fn clone(&self) -> CertificateVerification
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CertificateVerification
Source§impl Debug for CertificateVerification
impl Debug for CertificateVerification
impl Eq for CertificateVerification
Source§impl PartialEq for CertificateVerification
impl PartialEq for CertificateVerification
impl StructuralPartialEq for CertificateVerification
Auto Trait Implementations§
impl Freeze for CertificateVerification
impl RefUnwindSafe for CertificateVerification
impl Send for CertificateVerification
impl Sync for CertificateVerification
impl Unpin for CertificateVerification
impl UnsafeUnpin for CertificateVerification
impl UnwindSafe for CertificateVerification
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