pub enum TlsError {
Io(Error),
Rustls(Error),
NoPrivateKey(PathBuf),
NoCerts(PathBuf),
MissingClientCa,
VerifierBuild(String),
}Variants§
Io(Error)
Rustls(Error)
NoPrivateKey(PathBuf)
NoCerts(PathBuf)
MissingClientCa
client_auth is Optional/Required but client_ca_path is
unset. A client-cert verifier needs at least one trust root.
VerifierBuild(String)
rustls’s WebPkiClientVerifier::builder rejected the supplied
trust roots (typically: cert isn’t a CA, or the public key
algorithm isn’t supported).
Trait Implementations§
Source§impl Error for TlsError
impl Error for TlsError
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 !RefUnwindSafe for TlsError
impl !UnwindSafe for TlsError
impl Freeze for TlsError
impl Send for TlsError
impl Sync for TlsError
impl Unpin for TlsError
impl UnsafeUnpin 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