[][src]Enum ipfs_unixfs::dir::ResolveError

pub enum ResolveError {
    UnexpectedType(UnexpectedNodeType),
    UnexpectedDirProperties(UnexpectedDirectoryProperties),
    Read(Error),
    Lookup(LookupError),
}

Resolving can fail similarly as with ShardedLookup::continue_walk but in addition to sharded cases, there can be unexpected directories.

Variants

UnexpectedType(UnexpectedNodeType)

The target block was not a directory, hamt shard, or was a dag-pb node whose data could not be parsed as UnixFS.

UnexpectedDirProperties(UnexpectedDirectoryProperties)

A directory had unsupported properties. These are not encountered during walking sharded directories.

Read(Error)

Failed to read the block as a dag-pb node. Failure to read an inner UnixFS node is ignored and links of the outer dag-pb are processed.

Lookup(LookupError)

Lookup errors.

Trait Implementations

impl Debug for ResolveError[src]

impl Display for ResolveError[src]

impl Error for ResolveError[src]

impl From<InvalidCidInLink> for ResolveError[src]

impl From<LookupError> for ResolveError[src]

impl From<MultipleMatchingLinks> for ResolveError[src]

impl From<ShardError> for ResolveError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.