[][src]Enum ipfs_unixfs::dir::MultipleMatchingLinks

pub enum MultipleMatchingLinks {
    Two {
        first: (usize, Cid),
        second: (usize, Cid),
    },
    OneValid {
        first: (usize, Cid),
        second: InvalidCidInLink,
    },
}

Multiple matching links were found: at least two.

Variants

Two

Two valid links were found

Fields of Two

first: (usize, Cid)

The first link and its index in the links

second: (usize, Cid)

The second link and its index in the links

OneValid

Two links were matched but one of them could not be converted.

Fields of OneValid

first: (usize, Cid)

The first link and its index in the links

second: InvalidCidInLink

The failure to parse the other link

Implementations

impl MultipleMatchingLinks[src]

pub fn into_inner(self) -> Cid[src]

Takes the first link, ignoring the other(s).

Trait Implementations

impl Debug for MultipleMatchingLinks[src]

impl<'a> From<((usize, Cid), (usize, PBLink<'a>))> for MultipleMatchingLinks[src]

impl From<MultipleMatchingLinks> for LookupError[src]

impl From<MultipleMatchingLinks> 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, 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, 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.