pub enum TlsStateError {
IncompleteInterceptCaConfig,
ReadInterceptCaCert {
path: PathBuf,
source: Error,
},
ReadInterceptCaKey {
path: PathBuf,
source: Error,
},
InvalidInterceptCa {
cert_path: PathBuf,
key_path: PathBuf,
reason: String,
},
}Expand description
Errors that prevent TLS interception state from being initialized safely.
Variants§
IncompleteInterceptCaConfig
Exactly one of the intercept CA certificate/key paths was configured.
ReadInterceptCaCert
The configured intercept CA certificate could not be read.
ReadInterceptCaKey
The configured intercept CA private key could not be read.
InvalidInterceptCa
The configured intercept CA files were readable but did not form a usable CA.
Trait Implementations§
Source§impl Debug for TlsStateError
impl Debug for TlsStateError
Source§impl Display for TlsStateError
impl Display for TlsStateError
Source§impl Error for TlsStateError
impl Error for TlsStateError
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<TlsStateError> for NetworkInitError
impl From<TlsStateError> for NetworkInitError
Source§fn from(source: TlsStateError) -> Self
fn from(source: TlsStateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TlsStateError
impl !UnwindSafe for TlsStateError
impl Freeze for TlsStateError
impl Send for TlsStateError
impl Sync for TlsStateError
impl Unpin for TlsStateError
impl UnsafeUnpin for TlsStateError
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