#[non_exhaustive]pub enum ParseHashError {
UnknownAlgorithm,
WrongLength,
Malformed,
}Expand description
Why a hash could not be read.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnknownAlgorithm
The algorithm is not one that NibKeep knows.
WrongLength
The digest does not have the algorithm’s length.
Malformed
The input is not a hash in the expected form.
Trait Implementations§
Source§impl Clone for ParseHashError
impl Clone for ParseHashError
impl Copy for ParseHashError
Source§impl Debug for ParseHashError
impl Debug for ParseHashError
Source§impl Display for ParseHashError
impl Display for ParseHashError
impl Eq for ParseHashError
Source§impl Error for ParseHashError
impl Error for ParseHashError
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 ParseHashError
impl PartialEq for ParseHashError
impl StructuralPartialEq for ParseHashError
Auto Trait Implementations§
impl Forget for ParseHashError
impl Freeze for ParseHashError
impl Move for ParseHashError
impl RefUnwindSafe for ParseHashError
impl Send for ParseHashError
impl Sync for ParseHashError
impl Unpin for ParseHashError
impl UnsafeUnpin for ParseHashError
impl UnwindSafe for ParseHashError
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