Enum unixfs_v1::dir::MultipleMatchingLinks
source · [−]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
Fields
first: (usize, Cid)
The first link and its index in the links
second: (usize, Cid)
The second link and its index in the links
Two valid links were found
OneValid
Fields
first: (usize, Cid)
The first link and its index in the links
second: InvalidCidInLink
The failure to parse the other link
Two links were matched but one of them could not be converted.
Implementations
sourceimpl 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
sourceimpl Debug for MultipleMatchingLinks
impl Debug for MultipleMatchingLinks
sourceimpl From<MultipleMatchingLinks> for LookupError
impl From<MultipleMatchingLinks> for LookupError
sourcefn from(e: MultipleMatchingLinks) -> Self
fn from(e: MultipleMatchingLinks) -> Self
Converts to this type from the input type.
sourceimpl From<MultipleMatchingLinks> for ResolveError
impl From<MultipleMatchingLinks> for ResolveError
sourcefn from(e: MultipleMatchingLinks) -> ResolveError
fn from(e: MultipleMatchingLinks) -> ResolveError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for MultipleMatchingLinks
impl Send for MultipleMatchingLinks
impl Sync for MultipleMatchingLinks
impl Unpin for MultipleMatchingLinks
impl !UnwindSafe for MultipleMatchingLinks
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