pub enum KeyExpansionError {
InvalidKeyLength {
expected: usize,
actual: usize,
},
}
Expand description
An error produced during a key expansion.
Variants§
InvalidKeyLength
The given key’s length does not match the cipher version provided.
Trait Implementations§
Source§impl Debug for KeyExpansionError
impl Debug for KeyExpansionError
Source§impl Display for KeyExpansionError
impl Display for KeyExpansionError
Source§impl Error for KeyExpansionError
impl Error for KeyExpansionError
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 KeyExpansionError
impl PartialEq for KeyExpansionError
impl StructuralPartialEq for KeyExpansionError
Auto Trait Implementations§
impl Freeze for KeyExpansionError
impl RefUnwindSafe for KeyExpansionError
impl Send for KeyExpansionError
impl Sync for KeyExpansionError
impl Unpin for KeyExpansionError
impl UnwindSafe for KeyExpansionError
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