Enum rust_unixfs::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§
source§impl Debug for ResolveError
impl Debug for ResolveError
source§impl Display for ResolveError
impl Display for ResolveError
source§impl Error for ResolveError
impl Error for ResolveError
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 ResolveError
impl From<InvalidCidInLink> for ResolveError
source§fn from(e: InvalidCidInLink) -> ResolveError
fn from(e: InvalidCidInLink) -> ResolveError
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 ResolveError
impl From<MultipleMatchingLinks> for ResolveError
source§fn from(e: MultipleMatchingLinks) -> ResolveError
fn from(e: MultipleMatchingLinks) -> ResolveError
Converts to this type from the input type.
source§impl From<ShardError> for ResolveError
impl From<ShardError> for ResolveError
source§fn from(e: ShardError) -> ResolveError
fn from(e: ShardError) -> ResolveError
Converts to this type from the input type.