pub enum Error {
Show 19 variants
InvalidKeySize {
expected: usize,
actual: usize,
},
InvalidSignatureSize {
expected: usize,
actual: usize,
},
InvalidNonceSize {
expected: usize,
actual: usize,
},
InvalidMessageSize {
max: usize,
actual: usize,
},
InvalidCiphertextSize {
expected: usize,
actual: usize,
},
InvalidPlaintextSize {
expected: usize,
actual: usize,
},
InvalidHashSize {
expected: usize,
actual: usize,
},
InvalidAlgorithm {
algorithm: String,
},
InvalidSecurityLevel {
level: u32,
supported: &'static [u32],
},
VerificationFailed {
operation: String,
},
EncryptionFailed {
operation: String,
},
DecryptionFailed {
operation: String,
},
KeyGenerationFailed {
operation: String,
},
RandomGenerationFailed {
operation: String,
},
MemoryAllocationFailed {
operation: String,
},
InternalError {
operation: String,
details: String,
},
NotImplemented {
feature: String,
},
UnsupportedOperation {
operation: String,
},
InvalidState {
state: String,
},
}
Expand description
The error type for lib-Q operations
Variants§
InvalidKeySize
Invalid key size
InvalidSignatureSize
Invalid signature size
InvalidNonceSize
Invalid nonce size
InvalidMessageSize
Invalid message size
InvalidCiphertextSize
Invalid ciphertext size
InvalidPlaintextSize
Invalid plaintext size
InvalidHashSize
Invalid hash size
InvalidAlgorithm
Invalid algorithm
InvalidSecurityLevel
Invalid security level
VerificationFailed
Verification failed
EncryptionFailed
Encryption failed
DecryptionFailed
Decryption failed
KeyGenerationFailed
Key generation failed
RandomGenerationFailed
Random number generation failed
MemoryAllocationFailed
Memory allocation failed
InternalError
Internal error
NotImplemented
Not implemented
UnsupportedOperation
Unsupported operation
InvalidState
Invalid state
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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