[−][src]Enum ipfs_unixfs::file::FileError
Errors which can happen while processing UnixFS type File or Raw blocks.
Variants
There are nonequal number of links and blocksizes and thus the file ranges for linked trees or blocks cannot be determined.
Errored when the filesize is non-zero.
NonRootDefinesMetadata(Metadata)
Unsupported: non-root block defines metadata.
A non-leaf node in the tree has no filesize value which is used to determine the file range for this tree.
The tree or merkle dag should only collapse or stay the same length.
The tree links contain overlapping file segments. This is at least unsupported right now, but the larger segment could be collapsed down to the reused part.
Reader has been fed a link to earlier range.
The tree links contain a hole from a file segment to the next tree. This is at least unsupported right now. Zeroes could be generated for the hole.
These values should not be present for unixfs files with File or Raw. If they have a valid meaning, support for such has not been implemented.
Fields of UnexpectedRawOrFileProperties
Trait Implementations
impl Debug for FileError
[src]
impl Display for FileError
[src]
impl Eq for FileError
[src]
impl Error for FileError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<FileError> for FileReadFailed
[src]
impl PartialEq<FileError> for FileError
[src]
impl StructuralEq for FileError
[src]
impl StructuralPartialEq for FileError
[src]
Auto Trait Implementations
impl RefUnwindSafe for FileError
impl Send for FileError
impl Sync for FileError
impl Unpin for FileError
impl UnwindSafe for FileError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,