pub enum AESError {
InvalidKeySize,
NotInitialized,
}Expand description
Possible initialization errors
Variants§
InvalidKeySize
Returned when key size is neither of: 128, 192, or 256 bits.
NotInitialized
Returned when attempting encryption/decryption on non-initialized AES instance
Trait Implementations§
Source§impl Error for AESError
impl Error for AESError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
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
impl StructuralPartialEq for AESError
Auto Trait Implementations§
impl Freeze for AESError
impl RefUnwindSafe for AESError
impl Send for AESError
impl Sync for AESError
impl Unpin for AESError
impl UnsafeUnpin for AESError
impl UnwindSafe for AESError
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