pub enum EncryptionError {
AnyhowError(Error),
Crate(&'static str, String),
InvalidPrivateKey,
MismatchingAddress,
MissingInverse,
Message(String),
}
Variants
AnyhowError(Error)
Crate(&'static str, String)
InvalidPrivateKey
MismatchingAddress
MissingInverse
Message(String)
Trait Implementations
sourceimpl Debug for EncryptionError
impl Debug for EncryptionError
sourceimpl Display for EncryptionError
impl Display for EncryptionError
sourceimpl Error for EncryptionError
impl Error for EncryptionError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<EncryptionError> for Error
impl From<EncryptionError> for Error
sourcefn from(error: EncryptionError) -> Self
fn from(error: EncryptionError) -> Self
Performs the conversion.
sourceimpl From<EncryptionError> for SignatureError
impl From<EncryptionError> for SignatureError
sourcefn from(source: EncryptionError) -> Self
fn from(source: EncryptionError) -> Self
Performs the conversion.
sourceimpl From<Error> for EncryptionError
impl From<Error> for EncryptionError
Auto Trait Implementations
impl !RefUnwindSafe for EncryptionError
impl Send for EncryptionError
impl Sync for EncryptionError
impl Unpin for EncryptionError
impl !UnwindSafe for EncryptionError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more