[][src]Enum ipfs_unixfs::LookupError

pub enum LookupError {
    Multiple(MultipleMatchingLinks),
    InvalidCid(InvalidCidInLink),
    UnexpectedBucketType(UnexpectedNodeType),
    Shard(ShardError),
    Read(Option<Error>),
}

Errors which can occur when looking up a HAMTSharded directory.

Variants

Multiple matching links were found

InvalidCid(InvalidCidInLink)

Invalid Cid was matched

UnexpectedBucketType(UnexpectedNodeType)

Unexpected HAMT shard bucket type

Shard(ShardError)

Unsupported or unexpected property of the UnixFS node

Read(Option<Error>)

Parsing failed or the inner dag-pb data was contained no bytes.

Implementations

impl LookupError[src]

pub fn into_resolve_error(self) -> ResolveError[src]

Converts this HAMT lookup error to the more general ResolveError

Trait Implementations

impl Debug for LookupError[src]

impl Display for LookupError[src]

impl Error for LookupError[src]

impl From<InvalidCidInLink> for LookupError[src]

impl From<LookupError> for ResolveError[src]

impl From<MultipleMatchingLinks> for LookupError[src]

impl From<ShardError> for LookupError[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.