pub enum CryptoKitError {
Show 13 variants
InvalidKey,
InvalidNonce,
InvalidInput(String),
EncryptionFailed,
DecryptionFailed,
SignatureFailed,
VerificationFailed,
SigningFailed,
KeyGenerationFailed,
NonceGenerationFailed,
DerivationFailed,
InvalidLength,
SwiftCallFailed,
}Expand description
CryptoKit error type
Variants§
InvalidKey
Invalid key
InvalidNonce
Invalid nonce
InvalidInput(String)
Invalid input parameter
EncryptionFailed
Encryption failed
DecryptionFailed
Decryption failed
SignatureFailed
Signature generation failed
VerificationFailed
Signature verification failed
SigningFailed
Signing operation failed
KeyGenerationFailed
Key generation failed
NonceGenerationFailed
Nonce generation failed
DerivationFailed
Key derivation failed
InvalidLength
Invalid data length
SwiftCallFailed
Swift FFI call error
Trait Implementations§
Source§impl Clone for CryptoKitError
impl Clone for CryptoKitError
Source§fn clone(&self) -> CryptoKitError
fn clone(&self) -> CryptoKitError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CryptoKitError
impl Debug for CryptoKitError
Source§impl Display for CryptoKitError
impl Display for CryptoKitError
Source§impl Error for CryptoKitError
impl Error for CryptoKitError
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 PartialEq for CryptoKitError
impl PartialEq for CryptoKitError
impl StructuralPartialEq for CryptoKitError
Auto Trait Implementations§
impl Freeze for CryptoKitError
impl RefUnwindSafe for CryptoKitError
impl Send for CryptoKitError
impl Sync for CryptoKitError
impl Unpin for CryptoKitError
impl UnwindSafe for CryptoKitError
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