pub enum CryptoboxMigrationError {
MissingKeyInValue(String),
WrongValueType(String),
ProvidedPathDoesNotExist(String),
IdentityNotFound(String),
}
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
Trait Implementations§
source§impl Debug for CryptoboxMigrationError
impl Debug for CryptoboxMigrationError
source§impl Display for CryptoboxMigrationError
impl Display for CryptoboxMigrationError
source§impl Error for CryptoboxMigrationError
impl Error for CryptoboxMigrationError
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()
source§impl<'_derivative_strum> From<&'_derivative_strum CryptoboxMigrationError> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum CryptoboxMigrationError> for &'static str
source§fn from(x: &'_derivative_strum CryptoboxMigrationError) -> &'static str
fn from(x: &'_derivative_strum CryptoboxMigrationError) -> &'static str
Converts to this type from the input type.
source§impl From<CryptoboxMigrationError> for &'static str
impl From<CryptoboxMigrationError> for &'static str
source§fn from(x: CryptoboxMigrationError) -> &'static str
fn from(x: CryptoboxMigrationError) -> &'static str
Converts to this type from the input type.
source§impl From<CryptoboxMigrationError> for CryptoError
impl From<CryptoboxMigrationError> for CryptoError
source§fn from(source: CryptoboxMigrationError) -> Self
fn from(source: CryptoboxMigrationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CryptoboxMigrationError
impl RefUnwindSafe for CryptoboxMigrationError
impl Send for CryptoboxMigrationError
impl Sync for CryptoboxMigrationError
impl Unpin for CryptoboxMigrationError
impl UnwindSafe for CryptoboxMigrationError
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
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read moresource§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