pub enum PathRoot {
Ipld(Cid),
Ipns(PeerId),
Dns(String),
}
Expand description
The “protocol” of IpfsPath
.
Variants§
Ipld(Cid)
[Cid
] based path is the simplest path, and is stable.
Ipns(PeerId)
IPNS record based path which can point to different [Cid
] based paths at different times.
Dns(String)
DNSLINK based path which can point to different [Cid
] based paths at different times.
Implementations§
Trait Implementations§
source§impl PartialEq for PathRoot
impl PartialEq for PathRoot
impl Eq for PathRoot
impl StructuralEq for PathRoot
impl StructuralPartialEq for PathRoot
Auto Trait Implementations§
impl RefUnwindSafe for PathRoot
impl Send for PathRoot
impl Sync for PathRoot
impl Unpin for PathRoot
impl UnwindSafe for PathRoot
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.