pub enum ServerCertVerifierError {
InvalidRootCertificate {
cert: CertificateDer,
reason: String,
},
InvalidEndEntityCertificate {
cert: CertificateDer,
reason: String,
},
InvalidPath,
InvalidServerName,
}
Expand description
Error for ServerCertVerifier
.
Variants§
InvalidRootCertificate
Root certificate store contains invalid certificate.
InvalidEndEntityCertificate
End-entity certificate is invalid.
InvalidPath
Failed to verify certificate path to provided trust anchors.
InvalidServerName
Failed to verify certificate is valid for provided server name.
Trait Implementations§
Source§impl Debug for ServerCertVerifierError
impl Debug for ServerCertVerifierError
Source§impl Display for ServerCertVerifierError
impl Display for ServerCertVerifierError
Source§impl Error for ServerCertVerifierError
impl Error for ServerCertVerifierError
1.30.0§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ServerCertVerifierError
impl RefUnwindSafe for ServerCertVerifierError
impl Send for ServerCertVerifierError
impl Sync for ServerCertVerifierError
impl Unpin for ServerCertVerifierError
impl UnwindSafe for ServerCertVerifierError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more