pub enum Error<B: Backend> {
Backend(B::Err),
Cipher(CipherError),
Header(HeaderError),
}
Expand description
Error type used by this module.
Variants§
Backend(B::Err)
An error occured in the attached backend.
Cipher(CipherError)
A cipher related error
Header(HeaderError)
Errors coming from header evaluation.
Trait Implementations§
Source§impl<B: Backend> Error for Error<B>
impl<B: Backend> Error for Error<B>
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<B: Backend> From<CipherError> for Error<B>
impl<B: Backend> From<CipherError> for Error<B>
Source§fn from(source: CipherError) -> Self
fn from(source: CipherError) -> Self
Converts to this type from the input type.
Source§impl<B: Backend> From<HeaderError> for Error<B>
impl<B: Backend> From<HeaderError> for Error<B>
Source§fn from(source: HeaderError) -> Self
fn from(source: HeaderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<B> Freeze for Error<B>
impl<B> RefUnwindSafe for Error<B>
impl<B> Send for Error<B>
impl<B> Sync for Error<B>
impl<B> Unpin for Error<B>
impl<B> UnwindSafe for Error<B>
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