pub enum HoloHashError {
NoU,
BadBase64,
BadSize,
BadPrefix(String, [u8; 3]),
BadChecksum(String),
BadHashSize,
}Expand description
HoloHash Error Type.
Variants§
NoU
holo hashes begin with a lower case u (base64url_no_pad)
BadBase64
could not base64 decode the holo hash
BadSize
this string is not the right size for a holo hash
BadPrefix(String, [u8; 3])
this hash does not match a known holo hash prefix
BadChecksum(String)
checksum validation failed
BadHashSize
this hash size is too large for blake2b
Trait Implementations§
Source§impl Clone for HoloHashError
impl Clone for HoloHashError
Source§fn clone(&self) -> HoloHashError
fn clone(&self) -> HoloHashError
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 HoloHashError
impl Debug for HoloHashError
Source§impl Display for HoloHashError
impl Display for HoloHashError
Source§impl Error for HoloHashError
impl Error for HoloHashError
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 PartialEq for HoloHashError
impl PartialEq for HoloHashError
impl Eq for HoloHashError
impl StructuralPartialEq for HoloHashError
Auto Trait Implementations§
impl Freeze for HoloHashError
impl RefUnwindSafe for HoloHashError
impl Send for HoloHashError
impl Sync for HoloHashError
impl Unpin for HoloHashError
impl UnwindSafe for HoloHashError
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.