pub enum InvalidCarFile {
MalformedVarint,
HeaderTooLarge,
TruncatedHeader,
MalformedHeader,
UnsupportedVersion {
got: u64,
},
BadRootCount {
got: usize,
},
MalformedRootCid,
Io(Error),
}Expand description
Errors produced by read_carv1_root.
Variants§
MalformedVarint
HeaderTooLarge
TruncatedHeader
MalformedHeader
UnsupportedVersion
BadRootCount
MalformedRootCid
Io(Error)
Trait Implementations§
Source§impl Debug for InvalidCarFile
impl Debug for InvalidCarFile
Source§impl Display for InvalidCarFile
impl Display for InvalidCarFile
Source§impl Error for InvalidCarFile
impl Error for InvalidCarFile
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 !RefUnwindSafe for InvalidCarFile
impl !UnwindSafe for InvalidCarFile
impl Freeze for InvalidCarFile
impl Send for InvalidCarFile
impl Sync for InvalidCarFile
impl Unpin for InvalidCarFile
impl UnsafeUnpin for InvalidCarFile
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