pub enum ParseHashBytesError {
InvalidBase64(DecodeSliceError),
InvalidHex(FromHexError),
UnexpectedStringLength,
}
Expand description
Error type for hash bytes parsing related errors.
Variants§
InvalidBase64(DecodeSliceError)
Failed to parse base64 encoded bytes.
InvalidHex(FromHexError)
Failed to parse hex encoded bytes.
UnexpectedStringLength
Error for an unexpected string length.
Trait Implementations§
Source§impl Clone for ParseHashBytesError
impl Clone for ParseHashBytesError
Source§fn clone(&self) -> ParseHashBytesError
fn clone(&self) -> ParseHashBytesError
Returns a duplicate of the value. Read more
1.0.0 · 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 ParseHashBytesError
impl Debug for ParseHashBytesError
Source§impl Display for ParseHashBytesError
impl Display for ParseHashBytesError
Source§impl Error for ParseHashBytesError
impl Error for ParseHashBytesError
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<DecodeSliceError> for ParseHashBytesError
impl From<DecodeSliceError> for ParseHashBytesError
Source§fn from(source: DecodeSliceError) -> Self
fn from(source: DecodeSliceError) -> Self
Converts to this type from the input type.
Source§impl From<FromHexError> for ParseHashBytesError
impl From<FromHexError> for ParseHashBytesError
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParseHashBytesError
impl RefUnwindSafe for ParseHashBytesError
impl Send for ParseHashBytesError
impl Sync for ParseHashBytesError
impl Unpin for ParseHashBytesError
impl UnwindSafe for ParseHashBytesError
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