Enum unixfs_v1::dir::MaybeResolved[][src]

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

Resolving result type for the successful cases.

Variants

Found

Link was found for the given segment.

Tuple Fields of Found

0: Cid
NeedToLoadMore

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.

Tuple Fields of NeedToLoadMore

0: ShardedLookup<'needle>
NotFound

The segment could not be found.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Scrape the references from an impl Read. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.