Enum redact_crypto::error::CryptoError [−][src]
pub enum CryptoError {
FsIoError {
source: Error,
},
SourceKeyBadSize,
NotSymmetric,
NotAsymmetric,
NotSecret,
Infallible,
NotFound,
NotBytesKeySource,
}Expand description
Error that wraps all possible errors out of the redact-crypto crate
Variants
Indicates an error occurred while performing IO on the filesystem
Show fields
Fields of FsIoError
source: ErrorIndicates the key loaded key isn’t the right size for the selected executor
Indicates the source key is not a symmetric key
Indicates the source key is not an asymmetric key
Indicates the source key is not a secret asymmetric key
This error will never occur
Indicates the key source could not source the key
Indicates the key sources is not a bytes key source but must be
Trait Implementations
impl Debug for CryptoError[src]
impl Debug for CryptoError[src]impl Display for CryptoError[src]
impl Display for CryptoError[src]impl Error for CryptoError[src]
impl Error for CryptoError[src]fn source(&self) -> Option<&(dyn Error + 'static)>[src]
fn source(&self) -> Option<&(dyn Error + 'static)>[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>[src]
fn backtrace(&self) -> Option<&Backtrace>[src]backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str1.0.0[src]
fn description(&self) -> &str1.0.0[src]use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for CryptoError
impl Send for CryptoError
impl Sync for CryptoError
impl Unpin for CryptoError
impl !UnwindSafe for CryptoError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,