Enum nuts_container::HeaderError
source · pub enum HeaderError {
Cipher(CipherError),
Kdf(KdfError),
Password(PasswordError),
WrongPassword(Error),
Bytes(Error),
OpenSSL(ErrorStack),
}Expand description
Header related errors.
Variants§
Cipher(CipherError)
A cipher related error
Kdf(KdfError)
A KDF related error
Password(PasswordError)
A password related error.
WrongPassword(Error)
The password is wrong.
Bytes(Error)
Error while (de-) serializing binary data.
OpenSSL(ErrorStack)
An error in the OpenSSL library occured.
Trait Implementations§
source§impl Debug for HeaderError
impl Debug for HeaderError
source§impl Display for HeaderError
impl Display for HeaderError
source§impl Error for HeaderError
impl Error for HeaderError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<CipherError> for HeaderError
impl From<CipherError> for HeaderError
source§fn from(source: CipherError) -> Self
fn from(source: CipherError) -> Self
Converts to this type from the input type.
source§impl From<Error> for HeaderError
impl From<Error> for HeaderError
source§impl From<ErrorStack> for HeaderError
impl From<ErrorStack> for HeaderError
source§fn from(source: ErrorStack) -> Self
fn from(source: ErrorStack) -> 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.
source§impl From<KdfError> for HeaderError
impl From<KdfError> for HeaderError
source§impl From<PasswordError> for HeaderError
impl From<PasswordError> for HeaderError
source§fn from(source: PasswordError) -> Self
fn from(source: PasswordError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for HeaderError
impl Send for HeaderError
impl Sync for HeaderError
impl Unpin for HeaderError
impl !UnwindSafe for HeaderError
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