Enum rust_unixfs::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
Two valid links were found
OneValid
Fields
§
second: InvalidCidInLink
The failure to parse the other link
Two links were matched but one of them could not be converted.
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 !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