pub enum AesGcmAsyncError {
InvalidKeySize(usize),
InvalidIvSize(usize),
IoError(String),
AuthenticationFailed,
CryptoError(String),
}Expand description
Custom error types for AES-GCM async operations
Variants§
InvalidKeySize(usize)
Invalid key size - must be 16, 24, or 32 bytes for AES-128, AES-192, or AES-256
InvalidIvSize(usize)
Invalid IV size - must be at least 1 byte (longer IVs are hashed to 12 bytes)
IoError(String)
I/O error during async operations
AuthenticationFailed
Authentication failure during decryption
CryptoError(String)
Internal cryptographic error
Trait Implementations§
Source§impl Clone for AesGcmAsyncError
impl Clone for AesGcmAsyncError
Source§fn clone(&self) -> AesGcmAsyncError
fn clone(&self) -> AesGcmAsyncError
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 AesGcmAsyncError
impl Debug for AesGcmAsyncError
Source§impl Display for AesGcmAsyncError
impl Display for AesGcmAsyncError
Source§impl Error for AesGcmAsyncError
impl Error for AesGcmAsyncError
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<Error> for AesGcmAsyncError
impl From<Error> for AesGcmAsyncError
Source§impl PartialEq for AesGcmAsyncError
impl PartialEq for AesGcmAsyncError
impl StructuralPartialEq for AesGcmAsyncError
Auto Trait Implementations§
impl Freeze for AesGcmAsyncError
impl RefUnwindSafe for AesGcmAsyncError
impl Send for AesGcmAsyncError
impl Sync for AesGcmAsyncError
impl Unpin for AesGcmAsyncError
impl UnwindSafe for AesGcmAsyncError
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