pub enum MacError {
InsecureKey,
Verification,
}Expand description
An error from a Mac.
Variants§
InsecureKey
The key provided to Mac::new is insecure.
Verification
The MAC (authentication tag) could not be verified.
Trait Implementations§
Source§impl Error for MacError
impl Error for MacError
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 MacError
impl StructuralPartialEq for MacError
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