pub enum CryptoKitError {
Show 13 variants
InvalidKey,
InvalidNonce,
InvalidInput(String),
EncryptionFailed,
DecryptionFailed,
SignatureFailed,
VerificationFailed,
SigningFailed,
KeyGenerationFailed,
NonceGenerationFailed,
DerivationFailed,
InvalidLength,
SwiftCallFailed,
}
Expand description
CryptoKit错误类型
Variants§
InvalidKey
无效的密钥
InvalidNonce
无效的随机数/nonce
InvalidInput(String)
无效的输入参数
EncryptionFailed
加密失败
DecryptionFailed
解密失败
SignatureFailed
签名生成失败
VerificationFailed
签名验证失败
SigningFailed
签名操作失败
KeyGenerationFailed
密钥生成失败
NonceGenerationFailed
Nonce生成失败
DerivationFailed
密钥派生失败
InvalidLength
数据长度错误
SwiftCallFailed
Swift FFI调用错误
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