Enum rust_unixfs::dir::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§
source§impl 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§
source§impl Debug for LookupError
impl Debug for LookupError
source§impl Display for LookupError
impl Display for LookupError
source§impl Error for LookupError
impl Error for LookupError
source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<InvalidCidInLink> for LookupError
impl From<InvalidCidInLink> for LookupError
source§fn from(e: InvalidCidInLink) -> Self
fn from(e: InvalidCidInLink) -> Self
Converts to this type from the input type.
source§impl From<LookupError> for ResolveError
impl From<LookupError> for ResolveError
source§fn from(e: LookupError) -> ResolveError
fn from(e: LookupError) -> ResolveError
Converts to this type from the input type.
source§impl From<MultipleMatchingLinks> for LookupError
impl From<MultipleMatchingLinks> for LookupError
source§fn from(e: MultipleMatchingLinks) -> Self
fn from(e: MultipleMatchingLinks) -> Self
Converts to this type from the input type.
source§impl From<ShardError> for LookupError
impl From<ShardError> for LookupError
source§fn 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§
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