Struct unixfs_v1::dir::ShardedLookup
source · [−]pub struct ShardedLookup<'needle> { /* private fields */ }
Expand description
ShardedLookup
can walk over multiple HAMT sharded directory nodes which allows multiple block
spanning directories.
Implementations
sourceimpl<'needle> ShardedLookup<'needle>
impl<'needle> ShardedLookup<'needle>
sourcepub fn pending_links(&self) -> (&Cid, impl Iterator<Item = &Cid>)
pub fn pending_links(&self) -> (&Cid, impl Iterator<Item = &Cid>)
Returns the next pending link and an iterator over the rest.
sourcepub 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
.
sourcepub fn with_owned_needle(self) -> ShardedLookup<'static>
pub fn with_owned_needle(self) -> ShardedLookup<'static>
Transforms this ShardedLookup
into a ShardedLookup<'static>
by taking ownership of the
needle we are trying to find.
Trait Implementations
Auto Trait Implementations
impl<'needle> RefUnwindSafe for ShardedLookup<'needle>
impl<'needle> Send for ShardedLookup<'needle>
impl<'needle> Sync for ShardedLookup<'needle>
impl<'needle> Unpin for ShardedLookup<'needle>
impl<'needle> UnwindSafe for ShardedLookup<'needle>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more