pub enum TlsError {
CertificateLoad {
path: String,
message: String,
},
PrivateKeyLoad {
path: String,
message: String,
},
Config(String),
Handshake(String),
InvalidCertificate(String),
NoCertificates(String),
NoPrivateKeys(String),
}Expand description
Errors related to TLS/SSL operations.
Variants§
CertificateLoad
Failed to load certificate file.
PrivateKeyLoad
Failed to load private key file.
Config(String)
Failed to build TLS configuration.
Handshake(String)
TLS handshake failed.
InvalidCertificate(String)
Invalid certificate.
NoCertificates(String)
No certificates found in file.
NoPrivateKeys(String)
No private keys found in file.
Trait Implementations§
Source§impl Error for TlsError
impl Error for TlsError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for TlsError
impl RefUnwindSafe for TlsError
impl Send for TlsError
impl Sync for TlsError
impl Unpin for TlsError
impl UnwindSafe for TlsError
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