pub enum SslError {
SslUnsupported,
SslAlreadyUpgraded,
OpenSslError(Error),
OpenSslErrorStack(ErrorStack),
OpenSslErrorVerify(X509VerifyResult),
RustlsError(Error),
WebpkiError(Error),
VerifierBuilderError(VerifierBuilderError),
InvalidDnsNameError(InvalidDnsNameError),
SslIoError(Error),
}
Variants§
SslUnsupported
SslAlreadyUpgraded
OpenSslError(Error)
OpenSslErrorStack(ErrorStack)
OpenSslErrorVerify(X509VerifyResult)
RustlsError(Error)
WebpkiError(Error)
VerifierBuilderError(VerifierBuilderError)
InvalidDnsNameError(InvalidDnsNameError)
SslIoError(Error)
Implementations§
Source§impl SslError
impl SslError
Sourcepub fn common_error(&self) -> Option<CommonError>
pub fn common_error(&self) -> Option<CommonError>
Returns a common error for any time of crypto backend.
Trait Implementations§
Source§impl Error for SslError
impl Error for SslError
Source§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 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ErrorStack> for SslError
impl From<ErrorStack> for SslError
Source§fn from(value: ErrorStack) -> Self
fn from(value: ErrorStack) -> Self
Converts to this type from the input type.
Source§impl From<InvalidDnsNameError> for SslError
impl From<InvalidDnsNameError> for SslError
Source§fn from(value: InvalidDnsNameError) -> Self
fn from(value: InvalidDnsNameError) -> Self
Converts to this type from the input type.
Source§impl From<SslError> for ConnectionError
impl From<SslError> for ConnectionError
Source§impl From<VerifierBuilderError> for SslError
impl From<VerifierBuilderError> for SslError
Source§fn from(value: VerifierBuilderError) -> Self
fn from(value: VerifierBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<X509VerifyResult> for SslError
impl From<X509VerifyResult> for SslError
Source§fn from(value: X509VerifyResult) -> Self
fn from(value: X509VerifyResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SslError
impl !RefUnwindSafe for SslError
impl Send for SslError
impl Sync for SslError
impl Unpin for SslError
impl !UnwindSafe for SslError
Blanket Implementations§
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