pub enum HeaderError {
Show 14 variants
Cipher(CipherError),
Kdf(KdfError),
Password(PasswordError),
WrongPassword,
InvalidRevision(u32, u32),
UnknownRevision(u32),
InvalidHeader,
InvalidSid,
UnexpectedSid {
expected: Option<u32>,
got: Option<u32>,
},
InvalidSettings,
InvalidTopId,
Buffer(BufferError),
OpenSSL(ErrorStack),
Migration(MigrationError),
}
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
The password is wrong.
InvalidRevision(u32, u32)
Invalid header revision
UnknownRevision(u32)
Unknown header revision (from the future)
InvalidHeader
Invalid header, could not validate magic
InvalidSid
Invalid service identifeir (sid)
UnexpectedSid
Unexpected service identifier (sid)
InvalidSettings
Invalid settings, could not parse backend settings from header.
InvalidTopId
Invalid top-id, could not parse top-id from header.
Buffer(BufferError)
Error while (de-) serializing binary data.
OpenSSL(ErrorStack)
An error in the OpenSSL library occured.
Migration(MigrationError)
Errors coming from a migration
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)>
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<BufferError> for HeaderError
impl From<BufferError> for HeaderError
Source§fn from(source: BufferError) -> Self
fn from(source: BufferError) -> Self
Converts to this type from the input type.
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<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<MigrationError> for HeaderError
impl From<MigrationError> for HeaderError
Source§fn from(source: MigrationError) -> Self
fn from(source: MigrationError) -> Self
Converts to this type from the input type.
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 Freeze for HeaderError
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