Enum unixfs_v1::dir::ResolveError
source · [−]pub enum ResolveError {
UnexpectedType(UnexpectedNodeType),
UnexpectedDirProperties(UnexpectedDirectoryProperties),
Read(Error),
Lookup(LookupError),
}
Expand description
Resolving can fail similarly as with ShardedLookup::continue_walk
but in addition to sharded
cases, there can be unexpected directories.
Variants
UnexpectedType(UnexpectedNodeType)
The target block was a UnixFs node that doesn’t support resolving, e.g. a file.
UnexpectedDirProperties(UnexpectedDirectoryProperties)
A directory had unsupported properties. These are not encountered during walking sharded directories.
Read(Error)
Failed to read the block as a dag-pb node. Failure to read an inner UnixFS node is ignored and links of the outer dag-pb are processed.
Lookup(LookupError)
Lookup errors.
Trait Implementations
sourceimpl Debug for ResolveError
impl Debug for ResolveError
sourceimpl Display for ResolveError
impl Display for ResolveError
sourceimpl Error for ResolveError
impl Error for ResolveError
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 ResolveError
impl From<InvalidCidInLink> for ResolveError
sourcefn from(e: InvalidCidInLink) -> ResolveError
fn from(e: InvalidCidInLink) -> ResolveError
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 ResolveError
impl From<MultipleMatchingLinks> for ResolveError
sourcefn from(e: MultipleMatchingLinks) -> ResolveError
fn from(e: MultipleMatchingLinks) -> ResolveError
Converts to this type from the input type.
sourceimpl From<ShardError> for ResolveError
impl From<ShardError> for ResolveError
sourcefn from(e: ShardError) -> ResolveError
fn from(e: ShardError) -> ResolveError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for ResolveError
impl Send for ResolveError
impl Sync for ResolveError
impl Unpin for ResolveError
impl !UnwindSafe for ResolveError
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