pub enum CryptoboxMigrationErrorKind {
MissingKeyInValue(String),
WrongValueType(String),
ProvidedPathDoesNotExist(String),
IdentityNotFound(String),
Io(Error),
ParseInt(ParseIntError),
}
Expand description
Wrapper for errors that can happen during a Cryptobox migration
Variants§
MissingKeyInValue(String)
Error when trying to fetch a certain key from a structured value
WrongValueType(String)
Error when trying to coerce a certain value to a certain type
ProvidedPathDoesNotExist(String)
Error when trying to open a Cryptobox store that doesn’t exist
IdentityNotFound(String)
Error when inspecting a Cryptobox store that doesn’t contain an Identity
Io(Error)
ParseInt(ParseIntError)
Trait Implementations§
Source§impl Debug for CryptoboxMigrationErrorKind
impl Debug for CryptoboxMigrationErrorKind
Source§impl Error for CryptoboxMigrationErrorKind
impl Error for CryptoboxMigrationErrorKind
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<'_derivative_strum> From<&'_derivative_strum CryptoboxMigrationErrorKind> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum CryptoboxMigrationErrorKind> for &'static str
Source§fn from(x: &'_derivative_strum CryptoboxMigrationErrorKind) -> &'static str
fn from(x: &'_derivative_strum CryptoboxMigrationErrorKind) -> &'static str
Converts to this type from the input type.
Source§impl From<CryptoboxMigrationErrorKind> for &'static str
impl From<CryptoboxMigrationErrorKind> for &'static str
Source§fn from(x: CryptoboxMigrationErrorKind) -> &'static str
fn from(x: CryptoboxMigrationErrorKind) -> &'static str
Converts to this type from the input type.
Source§impl From<Error> for CryptoboxMigrationErrorKind
impl From<Error> for CryptoboxMigrationErrorKind
Source§impl From<ParseIntError> for CryptoboxMigrationErrorKind
impl From<ParseIntError> for CryptoboxMigrationErrorKind
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CryptoboxMigrationErrorKind
impl !RefUnwindSafe for CryptoboxMigrationErrorKind
impl Send for CryptoboxMigrationErrorKind
impl Sync for CryptoboxMigrationErrorKind
impl Unpin for CryptoboxMigrationErrorKind
impl !UnwindSafe for CryptoboxMigrationErrorKind
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
Source§impl<E> InnermostErrorMessage for Ewhere
E: Error,
impl<E> InnermostErrorMessage for Ewhere
E: Error,
Source§fn innermost_error_message(&self) -> String
fn innermost_error_message(&self) -> String
Produce the error message from the innermost wrapped error.
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more