Enum unixfs_v1::LookupError
source · [−]pub enum LookupError {
Multiple(MultipleMatchingLinks),
InvalidCid(InvalidCidInLink),
UnexpectedBucketType(UnexpectedNodeType),
Shard(ShardError),
Read(Option<Error>),
}
Expand description
Errors which can occur when looking up a HAMTSharded directory.
Variants
Multiple(MultipleMatchingLinks)
Multiple matching links were found
InvalidCid(InvalidCidInLink)
Invalid Cid was matched
UnexpectedBucketType(UnexpectedNodeType)
Unexpected HAMT shard bucket type
Shard(ShardError)
Unsupported or unexpected property of the UnixFS node
Read(Option<Error>)
Parsing failed or the inner dag-pb data was contained no bytes.
Implementations
sourceimpl LookupError
impl LookupError
sourcepub fn into_resolve_error(self) -> ResolveError
pub fn into_resolve_error(self) -> ResolveError
Converts this HAMT lookup error to the more general ResolveError
Trait Implementations
sourceimpl Debug for LookupError
impl Debug for LookupError
sourceimpl Display for LookupError
impl Display for LookupError
sourceimpl Error for LookupError
impl Error for LookupError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<InvalidCidInLink> for LookupError
impl From<InvalidCidInLink> for LookupError
sourcefn from(e: InvalidCidInLink) -> Self
fn from(e: InvalidCidInLink) -> Self
Converts to this type from the input type.
sourceimpl From<LookupError> for ResolveError
impl From<LookupError> for ResolveError
sourcefn from(e: LookupError) -> ResolveError
fn from(e: LookupError) -> ResolveError
Converts to this type from the input type.
sourceimpl From<MultipleMatchingLinks> for LookupError
impl From<MultipleMatchingLinks> for LookupError
sourcefn from(e: MultipleMatchingLinks) -> Self
fn from(e: MultipleMatchingLinks) -> Self
Converts to this type from the input type.
sourceimpl From<ShardError> for LookupError
impl From<ShardError> for LookupError
sourcefn from(e: ShardError) -> Self
fn from(e: ShardError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for LookupError
impl Send for LookupError
impl Sync for LookupError
impl Unpin for LookupError
impl !UnwindSafe for LookupError
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