[][src]Struct ipfs_unixfs::InvalidCidInLink

pub struct InvalidCidInLink {
    pub nth: usize,
    pub hash: Cow<'static, [u8]>,
    pub name: Cow<'static, str>,
    pub source: Error,
    // some fields omitted
}

A link could not be transformed into a Cid.

Fields

nth: usize

The index of this link, from zero

hash: Cow<'static, [u8]>

Hash which could not be turned into a Cid

name: Cow<'static, str>

Name of the link, most likely empty when this originates from a file, most likely non-empty for other kinds.

source: Error

Error from the attempted conversion

Trait Implementations

impl Debug for InvalidCidInLink[src]

impl Display for InvalidCidInLink[src]

impl Error for InvalidCidInLink[src]

impl<'a> From<(usize, PBLink<'a>, Error)> for InvalidCidInLink[src]

impl From<InvalidCidInLink> for LookupError[src]

impl From<InvalidCidInLink> for ResolveError[src]

impl From<InvalidCidInLink> for Error[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> 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.