pub enum Error {
Show 20 variants
NoReadCap,
NoKeyAvailable,
MissingPrivateKey,
KeyVariantUnsupported,
BlockNotEncrypted,
InvalidHashFormat,
InvalidSignature,
IncorrectSize {
expected: usize,
actual: usize,
},
TooSmall {
required: usize,
actual: usize,
},
IndexOutOfBounds {
index: usize,
limit: usize,
},
IndivisibleSize {
divisor: usize,
actual: usize,
},
InvalidOffset {
actual: usize,
limit: usize,
},
HashCmpFailure,
RootHashNotVerified,
SignatureMismatch(Box<SignatureMismatch>),
Library(Box<dyn Error + Send + Sync + 'static>),
OpAlreadyFinished,
NotIssuedTo,
NoRootCreds,
WrongRootPassword,
}
Expand description
Errors that can occur during cryptographic operations.
Variants§
NoReadCap
NoKeyAvailable
MissingPrivateKey
KeyVariantUnsupported
BlockNotEncrypted
InvalidHashFormat
InvalidSignature
IncorrectSize
TooSmall
IndexOutOfBounds
IndivisibleSize
InvalidOffset
HashCmpFailure
RootHashNotVerified
SignatureMismatch(Box<SignatureMismatch>)
Library(Box<dyn Error + Send + Sync + 'static>)
This variant is used to convey errors that originated in an underlying library.
OpAlreadyFinished
Occurs when an attempt is made to finish an Op that is already finished.
NotIssuedTo
Indicates that a writecap was not issued to a particular Principal.
NoRootCreds
Indicates that no root credentials were present in a CredStore.
WrongRootPassword
Indicates that the wrong root password was given when attempting to access the root credentials.
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · 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<ErrorStack> for Error
impl From<ErrorStack> for Error
source§fn from(error: ErrorStack) -> Error
fn from(error: ErrorStack) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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