Struct unixfs_v1::dir::ShardedLookup [−][src]
pub struct ShardedLookup<'needle> { /* fields omitted */ }
Expand description
ShardedLookup
can walk over multiple HAMT sharded directory nodes which allows multiple block
spanning directories.
Implementations
Returns the next pending link and an iterator over the rest.
pub fn continue_walk(
self,
next: &[u8],
cache: &mut Option<Cache>
) -> Result<MaybeResolved<'needle>, LookupError>
pub fn continue_walk(
self,
next: &[u8],
cache: &mut Option<Cache>
) -> Result<MaybeResolved<'needle>, LookupError>
Continues the walk in the DAG of HAMT buckets searching for the original needle
.
Transforms this ShardedLookup
into a ShardedLookup<'static>
by taking ownership of the
needle we are trying to find.