pub enum TequelError {
InvalidHash,
InvalidHex(String),
InvalidMac,
InvalidUtf8,
KeyError(String),
}Expand description
Enum that represents some Types of Error in Tequel.
Variants§
InvalidHash
When Hash is invalid
InvalidHex(String)
When occurr some error with the decode from HEX to UTF-8
InvalidMac
When MACs not match
InvalidUtf8
When occurr error while trying decode HEX to UTF-8
KeyError(String)
When key is don’t provided or is different
Trait Implementations§
Source§impl Debug for TequelError
impl Debug for TequelError
Source§impl Display for TequelError
impl Display for TequelError
Source§impl Error for TequelError
impl Error for TequelError
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()
Auto Trait Implementations§
impl Freeze for TequelError
impl RefUnwindSafe for TequelError
impl Send for TequelError
impl Sync for TequelError
impl Unpin for TequelError
impl UnsafeUnpin for TequelError
impl UnwindSafe for TequelError
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