pub enum ContentHashError {
MissingPrefix,
WrongLength(usize),
InvalidHex,
}Expand description
An error parsing a ContentHash.
Variants§
MissingPrefix
The string does not start with the required sha256: prefix.
WrongLength(usize)
The hex portion of the hash is not 64 characters.
InvalidHex
The hex portion contains non-hex characters.
Trait Implementations§
Source§impl Debug for ContentHashError
impl Debug for ContentHashError
Source§impl Display for ContentHashError
impl Display for ContentHashError
Source§impl Error for ContentHashError
impl Error for ContentHashError
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 ContentHashError
impl RefUnwindSafe for ContentHashError
impl Send for ContentHashError
impl Sync for ContentHashError
impl Unpin for ContentHashError
impl UnsafeUnpin for ContentHashError
impl UnwindSafe for ContentHashError
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