pub enum ErrorV2 {
Hash(Error),
Utf8Encode(FromUtf8Error),
TryFromSlice(String),
HkdfLength(usize),
MessageEmpty,
MessageTooLong,
InvalidHmac,
InvalidPadding,
}Expand description
Error
Variants§
Hash(Error)
Hash error
Utf8Encode(FromUtf8Error)
Error while encoding to UTF-8
TryFromSlice(String)
Try from slice
HkdfLength(usize)
HKDF Length
MessageEmpty
Message is empty
MessageTooLong
Message is too long
InvalidHmac
Invalid HMAC
InvalidPadding
Invalid padding
Trait Implementations§
source§impl Error for ErrorV2
impl Error for ErrorV2
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<FromUtf8Error> for ErrorV2
impl From<FromUtf8Error> for ErrorV2
source§fn from(e: FromUtf8Error) -> ErrorV2
fn from(e: FromUtf8Error) -> ErrorV2
Converts to this type from the input type.
source§impl From<TryFromSliceError> for ErrorV2
impl From<TryFromSliceError> for ErrorV2
source§fn from(e: TryFromSliceError) -> ErrorV2
fn from(e: TryFromSliceError) -> ErrorV2
Converts to this type from the input type.
source§impl PartialEq for ErrorV2
impl PartialEq for ErrorV2
impl Eq for ErrorV2
impl StructuralPartialEq for ErrorV2
Auto Trait Implementations§
impl Freeze for ErrorV2
impl RefUnwindSafe for ErrorV2
impl Send for ErrorV2
impl Sync for ErrorV2
impl Unpin for ErrorV2
impl UnwindSafe for ErrorV2
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.