pub enum MACError {
GenericError(&'static str),
HashError(HashError),
InvalidLength(&'static str),
InvalidState(&'static str),
KeyMaterialError(KeyMaterialError),
}Variants§
GenericError(&'static str)
HashError(HashError)
InvalidLength(&'static str)
InvalidState(&'static str)
KeyMaterialError(KeyMaterialError)
Trait Implementations§
Source§impl From<KeyMaterialError> for MACError
impl From<KeyMaterialError> for MACError
Source§fn from(e: KeyMaterialError) -> MACError
fn from(e: KeyMaterialError) -> MACError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MACError
impl RefUnwindSafe for MACError
impl Send for MACError
impl Sync for MACError
impl Unpin for MACError
impl UnwindSafe for MACError
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