Struct unixfs_v1::InvalidCidInLink
source · [−]pub struct InvalidCidInLink {
pub nth: usize,
pub hash: Cow<'static, [u8]>,
pub name: Cow<'static, str>,
pub source: Error,
/* private fields */
}
Expand description
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
sourceimpl Debug for InvalidCidInLink
impl Debug for InvalidCidInLink
sourceimpl Display for InvalidCidInLink
impl Display for InvalidCidInLink
sourceimpl Error for InvalidCidInLink
impl Error for InvalidCidInLink
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl<'a> From<(usize, PBLink<'a>, Error)> for InvalidCidInLink
impl<'a> From<(usize, PBLink<'a>, Error)> for InvalidCidInLink
sourceimpl From<InvalidCidInLink> for Error
impl From<InvalidCidInLink> for Error
sourcefn from(e: InvalidCidInLink) -> Self
fn from(e: InvalidCidInLink) -> Self
Converts to this type from the input type.
sourceimpl From<InvalidCidInLink> for LookupError
impl From<InvalidCidInLink> for LookupError
sourcefn from(e: InvalidCidInLink) -> Self
fn from(e: InvalidCidInLink) -> Self
Converts to this type from the input type.
sourceimpl From<InvalidCidInLink> for ResolveError
impl From<InvalidCidInLink> for ResolveError
sourcefn from(e: InvalidCidInLink) -> ResolveError
fn from(e: InvalidCidInLink) -> ResolveError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for InvalidCidInLink
impl Send for InvalidCidInLink
impl Sync for InvalidCidInLink
impl Unpin for InvalidCidInLink
impl !UnwindSafe for InvalidCidInLink
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more