Enum rust_unixfs::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§
source§impl Debug for FileReadFailed
impl Debug for FileReadFailed
source§impl Display for FileReadFailed
impl Display for FileReadFailed
source§impl Error for FileReadFailed
impl Error for FileReadFailed
source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<FileError> for FileReadFailed
impl From<FileError> for FileReadFailed
source§impl From<FileReadFailed> for Error
impl From<FileReadFailed> for Error
source§fn from(e: FileReadFailed) -> Self
fn from(e: FileReadFailed) -> Self
Converts to this type from the input type.