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§
Auto Trait Implementations§
impl<'needle> Freeze for MaybeResolved<'needle>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more