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

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

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.