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§
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)>
Returns 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 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 Freeze for InvalidCidInLink
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more