pub enum MultipleMatchingLinks {
Two {
first: (usize, Cid),
second: (usize, Cid),
},
OneValid {
first: (usize, Cid),
second: InvalidCidInLink,
},
}
Expand description
Multiple matching links were found: at least two.
Variants§
Two
Two valid links were found
Fields
OneValid
Two links were matched but one of them could not be converted.
Fields
§
second: InvalidCidInLink
The failure to parse the other link
Implementations§
Source§impl MultipleMatchingLinks
impl MultipleMatchingLinks
Sourcepub fn into_inner(self) -> Cid
pub fn into_inner(self) -> Cid
Takes the first link, ignoring the other(s).
Trait Implementations§
Source§impl Debug for MultipleMatchingLinks
impl Debug for MultipleMatchingLinks
Source§impl From<MultipleMatchingLinks> for LookupError
impl From<MultipleMatchingLinks> for LookupError
Source§fn from(e: MultipleMatchingLinks) -> Self
fn from(e: MultipleMatchingLinks) -> Self
Converts to this type from the input type.
Source§impl From<MultipleMatchingLinks> for ResolveError
impl From<MultipleMatchingLinks> for ResolveError
Source§fn from(e: MultipleMatchingLinks) -> ResolveError
fn from(e: MultipleMatchingLinks) -> ResolveError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MultipleMatchingLinks
impl !RefUnwindSafe for MultipleMatchingLinks
impl Send for MultipleMatchingLinks
impl Sync for MultipleMatchingLinks
impl Unpin for MultipleMatchingLinks
impl !UnwindSafe for MultipleMatchingLinks
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