pub enum CarDecodeError {
InvalidCarV1Header(String),
InvalidCarV2Header(String),
InvalidMultihash(String),
InvalidCid(String),
InvalidBlockHeader(String),
BlockDigestMismatch(String),
UnsupportedHashCode((HashCode, Cid)),
BlockStartEOF,
UnsupportedCarVersion {
version: u64,
},
IoError(Error),
}Variants§
InvalidCarV1Header(String)
InvalidCarV2Header(String)
InvalidMultihash(String)
InvalidCid(String)
InvalidBlockHeader(String)
BlockDigestMismatch(String)
UnsupportedHashCode((HashCode, Cid))
BlockStartEOF
UnsupportedCarVersion
IoError(Error)
Trait Implementations§
Source§impl Debug for CarDecodeError
impl Debug for CarDecodeError
Source§impl Display for CarDecodeError
impl Display for CarDecodeError
Source§impl Error for CarDecodeError
impl Error for CarDecodeError
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<Error> for CarDecodeError
impl From<Error> for CarDecodeError
Source§impl From<Error> for CarDecodeError
impl From<Error> for CarDecodeError
Auto Trait Implementations§
impl Freeze for CarDecodeError
impl !RefUnwindSafe for CarDecodeError
impl Send for CarDecodeError
impl Sync for CarDecodeError
impl Unpin for CarDecodeError
impl !UnwindSafe for CarDecodeError
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