Struct rust_unixfs::InvalidCidInLink
source · #[non_exhaustive]pub struct InvalidCidInLink {
pub nth: usize,
pub hash: Cow<'static, [u8]>,
pub name: Cow<'static, str>,
pub source: Error,
}
Expand description
A link could not be transformed into a Cid.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.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§
source§impl Debug for InvalidCidInLink
impl Debug for InvalidCidInLink
source§impl Display for InvalidCidInLink
impl Display for InvalidCidInLink
source§impl Error for InvalidCidInLink
impl Error for InvalidCidInLink
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()
source§impl<'a> From<(usize, PBLink<'a>, Error)> for InvalidCidInLink
impl<'a> From<(usize, PBLink<'a>, Error)> for InvalidCidInLink
source§impl From<InvalidCidInLink> for Error
impl From<InvalidCidInLink> for Error
source§fn from(e: InvalidCidInLink) -> Self
fn from(e: InvalidCidInLink) -> Self
Converts to this type from the input type.
source§impl From<InvalidCidInLink> for LookupError
impl From<InvalidCidInLink> for LookupError
source§fn from(e: InvalidCidInLink) -> Self
fn from(e: InvalidCidInLink) -> Self
Converts to this type from the input type.
source§impl From<InvalidCidInLink> for ResolveError
impl From<InvalidCidInLink> for ResolveError
source§fn 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§
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