pub enum HashTextError {
InvalidLength {
expected: usize,
got: usize,
},
InvalidType(u8),
InvalidFormat(String),
InvalidPayload(String),
}Variants§
Trait Implementations§
Source§impl Clone for HashTextError
impl Clone for HashTextError
Source§fn clone(&self) -> HashTextError
fn clone(&self) -> HashTextError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HashTextError
impl Debug for HashTextError
Source§impl Display for HashTextError
impl Display for HashTextError
impl Eq for HashTextError
Source§impl Error for HashTextError
impl Error for HashTextError
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 From<TypedTextError> for HashTextError
impl From<TypedTextError> for HashTextError
Source§fn from(value: TypedTextError) -> Self
fn from(value: TypedTextError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HashTextError
impl PartialEq for HashTextError
Source§fn eq(&self, other: &HashTextError) -> bool
fn eq(&self, other: &HashTextError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HashTextError
Auto Trait Implementations§
impl Freeze for HashTextError
impl RefUnwindSafe for HashTextError
impl Send for HashTextError
impl Sync for HashTextError
impl Unpin for HashTextError
impl UnsafeUnpin for HashTextError
impl UnwindSafe for HashTextError
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