[][src]Enum ipfs_unixfs::dir::MaybeResolved

pub enum MaybeResolved<'needle> {
    Found(Cid),
    NeedToLoadMore(ShardedLookup<'needle>),
    NotFound,
}

Resolving result type for the successful cases.

Variants

Found(Cid)

Link was found for the given segment.

NeedToLoadMore(ShardedLookup<'needle>)

The block presented to resolve was a HAMT sharded directory and other blocks need to be read in order to find the link. ShardedLookup will handle the lookup and navigation over the shards.

NotFound

The segment could not be found.

Trait Implementations

impl<'needle> Debug for MaybeResolved<'needle>[src]

Auto Trait Implementations

impl<'needle> RefUnwindSafe for MaybeResolved<'needle>

impl<'needle> Send for MaybeResolved<'needle>

impl<'needle> Sync for MaybeResolved<'needle>

impl<'needle> Unpin for MaybeResolved<'needle>

impl<'needle> UnwindSafe for MaybeResolved<'needle>

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, 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.