Enum rust_ipfs::dag::ResolveError
source · pub enum ResolveError {
Loading(Cid, Error),
UnsupportedDocument(Cid, Box<dyn StdError + Send + Sync + 'static>),
ListIndexOutOfRange {
document: Cid,
path: SlashedPath,
index: usize,
elements: usize,
},
NoLinks(Cid, SlashedPath),
NotFound(Cid, SlashedPath),
NoCid(IpfsPath),
IpnsResolutionFailed(IpfsPath),
}
Variants§
Loading(Cid, Error)
Loading of the block on the path failed
UnsupportedDocument(Cid, Box<dyn StdError + Send + Sync + 'static>)
The document is unsupported; this can be a UnixFs directory structure which has unsupported options, or IPLD parsing failed.
ListIndexOutOfRange
Fields
§
document: Cid
The document with the mismatched index
§
path: SlashedPath
The path up until the mismatched index
Path contained an index which was out of range for the given [Ipld::List
].
NoLinks(Cid, SlashedPath)
Path attempted to resolve through e.g. a string or an integer.
NotFound(Cid, SlashedPath)
Path attempted to resolve through a property, index or link which did not exist.
NoCid(IpfsPath)
Tried to use a path neiter containing nor resolving to a Cid.
IpnsResolutionFailed(IpfsPath)
Couldn’t resolve a path via IPNS.
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()