Enum unixfs_v1::file::FileReadFailed
source · [−]pub enum FileReadFailed {
File(FileError),
UnexpectedType(UnexpectedNodeType),
Read(Option<Error>),
InvalidCid(InvalidCidInLink),
}
Expand description
Describes the errors which can happen during a visit or lower level block-by-block walking of the DAG.
Variants
File(FileError)
Unsupported UnixFs file; these might exist, but currently there are no workarounds for handling them.
UnexpectedType(UnexpectedNodeType)
FileReader can only process raw or file type of unixfs content.
Read(Option<Error>)
Parsing failed
InvalidCid(InvalidCidInLink)
Link could not be turned into Cid.
Trait Implementations
sourceimpl Debug for FileReadFailed
impl Debug for FileReadFailed
sourceimpl Display for FileReadFailed
impl Display for FileReadFailed
sourceimpl Error for FileReadFailed
impl Error for FileReadFailed
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<FileError> for FileReadFailed
impl From<FileError> for FileReadFailed
sourceimpl From<FileReadFailed> for Error
impl From<FileReadFailed> for Error
sourcefn from(e: FileReadFailed) -> Self
fn from(e: FileReadFailed) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for FileReadFailed
impl Send for FileReadFailed
impl Sync for FileReadFailed
impl Unpin for FileReadFailed
impl !UnwindSafe for FileReadFailed
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more