pub enum CryptoKeystoreError {
Show 25 variants
MissingKeyInStore(MissingKeyErrorKind),
KeyReprError(Utf8Error),
MutatingOperationWithoutTransaction,
TransactionInProgress {
attempted_operation: String,
},
TryFromSliceError(TryFromSliceError),
LockPoisonError,
OutOfKeyPackageBundles,
IncorrectApiUsage(&'static str),
SignatureKeyPairDoesNotBelongToCredential,
AlreadyExists,
BlobTooBig,
KeyStoreValueTransformError(Error),
IoError(Error),
TimeError(SystemTimeError),
DbError(Error),
DbMigrationError(Box<Error>),
InvalidKeySize {
expected: usize,
actual: usize,
key: &'static str,
},
ParseIntError(ParseIntError),
NoFreePrekeyId,
MlsKeyStoreError(String),
HexDecodeError(FromHexError),
FromUtf8Error(FromUtf8Error),
NotImplemented,
TimestampError,
NotFound(&'static str, String),
}
Expand description
Error type to represent various errors that can happen in the KeyStore
Variants§
MissingKeyInStore(MissingKeyErrorKind)
KeyReprError(Utf8Error)
MutatingOperationWithoutTransaction
TransactionInProgress
TryFromSliceError(TryFromSliceError)
LockPoisonError
OutOfKeyPackageBundles
IncorrectApiUsage(&'static str)
SignatureKeyPairDoesNotBelongToCredential
AlreadyExists
BlobTooBig
KeyStoreValueTransformError(Error)
IoError(Error)
TimeError(SystemTimeError)
DbError(Error)
DbMigrationError(Box<Error>)
InvalidKeySize
ParseIntError(ParseIntError)
NoFreePrekeyId
MlsKeyStoreError(String)
HexDecodeError(FromHexError)
FromUtf8Error(FromUtf8Error)
NotImplemented
TimestampError
NotFound(&'static str, String)
Trait Implementations§
source§impl Debug for CryptoKeystoreError
impl Debug for CryptoKeystoreError
source§impl Display for CryptoKeystoreError
impl Display for CryptoKeystoreError
source§impl Error for CryptoKeystoreError
impl Error for CryptoKeystoreError
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<Box<Error>> for CryptoKeystoreError
impl From<Box<Error>> for CryptoKeystoreError
source§impl From<Error> for CryptoKeystoreError
impl From<Error> for CryptoKeystoreError
source§impl From<Error> for CryptoKeystoreError
impl From<Error> for CryptoKeystoreError
source§impl From<Error> for CryptoKeystoreError
impl From<Error> for CryptoKeystoreError
source§impl From<FromHexError> for CryptoKeystoreError
impl From<FromHexError> for CryptoKeystoreError
source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
source§impl From<FromUtf8Error> for CryptoKeystoreError
impl From<FromUtf8Error> for CryptoKeystoreError
source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl From<MissingKeyErrorKind> for CryptoKeystoreError
impl From<MissingKeyErrorKind> for CryptoKeystoreError
source§fn from(source: MissingKeyErrorKind) -> Self
fn from(source: MissingKeyErrorKind) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for CryptoKeystoreError
impl From<ParseIntError> for CryptoKeystoreError
source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
source§impl From<SystemTimeError> for CryptoKeystoreError
impl From<SystemTimeError> for CryptoKeystoreError
source§fn from(source: SystemTimeError) -> Self
fn from(source: SystemTimeError) -> Self
Converts to this type from the input type.
source§impl From<TryFromSliceError> for CryptoKeystoreError
impl From<TryFromSliceError> for CryptoKeystoreError
source§fn from(source: TryFromSliceError) -> Self
fn from(source: TryFromSliceError) -> Self
Converts to this type from the input type.
source§impl From<Utf8Error> for CryptoKeystoreError
impl From<Utf8Error> for CryptoKeystoreError
Auto Trait Implementations§
impl Freeze for CryptoKeystoreError
impl !RefUnwindSafe for CryptoKeystoreError
impl Send for CryptoKeystoreError
impl Sync for CryptoKeystoreError
impl Unpin for CryptoKeystoreError
impl !UnwindSafe for CryptoKeystoreError
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<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