[][src]Enum ipfs::dag::ResolveError

pub enum ResolveError {
    Loading(CidError),
    UnsupportedDocument(CidBox<dyn StdError + Send + Sync + 'static>),
    ListIndexOutOfRange {
        document: Cid,
        path: SlashedPath,
        index: usize,
        elements: usize,
    },
    NoLinks(CidSlashedPath),
    NotFound(CidSlashedPath),
    NoCid(IpfsPath),
    IpnsResolutionFailed(IpfsPath),
}

Variants

Loading(CidError)

Loading of the block on the path failed

UnsupportedDocument(CidBox<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

Path contained an index which was out of range for the given Ipld::List.

Fields of ListIndexOutOfRange

document: Cid

The document with the mismatched index

path: SlashedPath

The path up until the mismatched index

index: usize

The index in original path

elements: usize

Total number of elements found

Path attempted to resolve through e.g. a string or an integer.

NotFound(CidSlashedPath)

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

impl Debug for ResolveError[src]

impl Display for ResolveError[src]

impl Error for ResolveError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]