pub enum TlsError {
InvalidVersionRange,
Unreadable {
path: PathBuf,
source: Error,
},
Empty {
path: PathBuf,
},
Unusable(Error),
Configuration(Error),
Unwatchable {
path: PathBuf,
source: Error,
},
NoRuntime {
path: PathBuf,
},
}Variants§
InvalidVersionRange
Unreadable
Empty
Unusable(Error)
Covers a key that will not parse, a key belonging to some other
certificate, and a certificate rustls will not serve at all — an X.509
v1 certificate being the one an operator is most likely to produce by
accident, since openssl req -x509 emits one unless asked otherwise.
Configuration(Error)
Unwatchable
NoRuntime
Rotation runs as a Tokio task, so loading certificates needs a runtime. An error rather than a panic: configuration is often resolved before one exists, and that is a caller mistake worth a clear message.
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()
Source§impl From<TlsError> for ClientTlsError
impl From<TlsError> for ClientTlsError
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<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