pub enum EncryptorError {
Show 20 variants
KeyGenFailed,
EncodeFailed,
DecodeFailed,
RsaEncryptFailed(String),
RsaDecryptFailed(String),
SignFailed(String),
InvalidResult(String),
VerifyFailed(String),
AesEncryptFailed,
AesDecryptFailed,
PublicKeyNotfound,
ImportPublicKeyError,
ExportPublicKeyError,
ImportPrivateKeyError,
ExportPrivateKeyError,
InvalidNonce,
AddPublicKeyError,
ReadPublicKeyError,
MissingSecret,
InvalidSignatureLength(usize),
}Variants§
KeyGenFailed
EncodeFailed
DecodeFailed
RsaEncryptFailed(String)
RsaDecryptFailed(String)
SignFailed(String)
InvalidResult(String)
VerifyFailed(String)
AesEncryptFailed
AesDecryptFailed
PublicKeyNotfound
ImportPublicKeyError
ExportPublicKeyError
ImportPrivateKeyError
ExportPrivateKeyError
InvalidNonce
AddPublicKeyError
ReadPublicKeyError
MissingSecret
InvalidSignatureLength(usize)
Trait Implementations§
Source§impl Debug for EncryptorError
impl Debug for EncryptorError
Source§impl Display for EncryptorError
impl Display for EncryptorError
impl Eq for EncryptorError
Source§impl Error for EncryptorError
impl Error for EncryptorError
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 From<EncryptorError> for Error
impl From<EncryptorError> for Error
Source§fn from(e: EncryptorError) -> Self
fn from(e: EncryptorError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EncryptorError
impl PartialEq for EncryptorError
impl StructuralPartialEq for EncryptorError
Auto Trait Implementations§
impl Freeze for EncryptorError
impl RefUnwindSafe for EncryptorError
impl Send for EncryptorError
impl Sync for EncryptorError
impl Unpin for EncryptorError
impl UnsafeUnpin for EncryptorError
impl UnwindSafe for EncryptorError
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