pub enum ReadSingleFileError {
IoError(Error),
CarDecodeError(CarDecodeError),
NotSingleRoot {
roots: Vec<Cid>,
},
InvalidUnixFs(String),
InvalidUnixFsHash(String),
MissingNode(Cid),
MaxBufferedData(usize),
RootCidIsNotFile,
DataNodesNotSorted,
PendingLinksAtEOF(Vec<Cid>),
PBLinkHasNoHash,
InternalError(String),
}Variants§
IoError(Error)
CarDecodeError(CarDecodeError)
NotSingleRoot
InvalidUnixFs(String)
InvalidUnixFsHash(String)
MissingNode(Cid)
MaxBufferedData(usize)
RootCidIsNotFile
DataNodesNotSorted
PendingLinksAtEOF(Vec<Cid>)
PBLinkHasNoHash
InternalError(String)
Trait Implementations§
Source§impl Debug for ReadSingleFileError
impl Debug for ReadSingleFileError
Source§impl Display for ReadSingleFileError
impl Display for ReadSingleFileError
Source§impl Error for ReadSingleFileError
impl Error for ReadSingleFileError
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<CarDecodeError> for ReadSingleFileError
impl From<CarDecodeError> for ReadSingleFileError
Source§fn from(error: CarDecodeError) -> Self
fn from(error: CarDecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ReadSingleFileError
impl !UnwindSafe for ReadSingleFileError
impl Freeze for ReadSingleFileError
impl Send for ReadSingleFileError
impl Sync for ReadSingleFileError
impl Unpin for ReadSingleFileError
impl UnsafeUnpin for ReadSingleFileError
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