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),
PathNotProvided,
}
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
§
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.
PathNotProvided
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()
Auto Trait Implementations§
impl Freeze for ResolveError
impl !RefUnwindSafe for ResolveError
impl Send for ResolveError
impl Sync for ResolveError
impl Unpin for ResolveError
impl !UnwindSafe for ResolveError
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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