pub enum CaPoolError {
NotACA,
NotSelfSigned,
NoIssuer,
}Expand description
A list of errors that can happen when working with a CA Pool
Variants§
NotACA
Tried to add a non-CA cert to the CA pool
NotSelfSigned
Tried to add a non-self-signed cert to the CA pool (all CAs must be root certificates)
NoIssuer
Tried to look up a certificate that does not have an issuer field
Trait Implementations§
Source§impl Debug for CaPoolError
impl Debug for CaPoolError
Source§impl Display for CaPoolError
Available on non-tarpaulin_include only.
impl Display for CaPoolError
Available on non-
tarpaulin_include only.Source§impl Error for CaPoolError
impl Error for CaPoolError
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 CaPoolError
impl RefUnwindSafe for CaPoolError
impl Send for CaPoolError
impl Sync for CaPoolError
impl Unpin for CaPoolError
impl UnwindSafe for CaPoolError
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