Struct rust_ipfs::p2p::MultiaddrWithoutPeerId
source · pub struct MultiaddrWithoutPeerId(_);
Expand description
A wrapper for Multiaddr
that does not contain Protocol::P2p
.
Implementations§
source§impl MultiaddrWithoutPeerId
impl MultiaddrWithoutPeerId
sourcepub fn with(self, peer_id: PeerId) -> MultiaddrWithPeerId
pub fn with(self, peer_id: PeerId) -> MultiaddrWithPeerId
Adds the peer_id information to this address without peer_id, turning it into
MultiaddrWithPeerId
.
Trait Implementations§
source§impl AsRef<Multiaddr> for MultiaddrWithoutPeerId
impl AsRef<Multiaddr> for MultiaddrWithoutPeerId
source§impl Clone for MultiaddrWithoutPeerId
impl Clone for MultiaddrWithoutPeerId
source§fn clone(&self) -> MultiaddrWithoutPeerId
fn clone(&self) -> MultiaddrWithoutPeerId
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MultiaddrWithoutPeerId
impl Debug for MultiaddrWithoutPeerId
source§impl Display for MultiaddrWithoutPeerId
impl Display for MultiaddrWithoutPeerId
source§impl From<MultiaddrWithPeerId> for MultiaddrWithoutPeerId
impl From<MultiaddrWithPeerId> for MultiaddrWithoutPeerId
source§fn from(addr: MultiaddrWithPeerId) -> Self
fn from(addr: MultiaddrWithPeerId) -> Self
Converts to this type from the input type.
source§impl From<MultiaddrWithoutPeerId> for Multiaddr
impl From<MultiaddrWithoutPeerId> for Multiaddr
source§fn from(addr: MultiaddrWithoutPeerId) -> Self
fn from(addr: MultiaddrWithoutPeerId) -> Self
Converts to this type from the input type.
source§impl FromStr for MultiaddrWithoutPeerId
impl FromStr for MultiaddrWithoutPeerId
source§impl Hash for MultiaddrWithoutPeerId
impl Hash for MultiaddrWithoutPeerId
source§impl PartialEq<Multiaddr> for MultiaddrWithoutPeerId
impl PartialEq<Multiaddr> for MultiaddrWithoutPeerId
source§impl PartialEq<MultiaddrWithoutPeerId> for MultiaddrWithoutPeerId
impl PartialEq<MultiaddrWithoutPeerId> for MultiaddrWithoutPeerId
source§fn eq(&self, other: &MultiaddrWithoutPeerId) -> bool
fn eq(&self, other: &MultiaddrWithoutPeerId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<Multiaddr> for MultiaddrWithoutPeerId
impl TryFrom<Multiaddr> for MultiaddrWithoutPeerId
impl Eq for MultiaddrWithoutPeerId
impl StructuralEq for MultiaddrWithoutPeerId
impl StructuralPartialEq for MultiaddrWithoutPeerId
Auto Trait Implementations§
impl RefUnwindSafe for MultiaddrWithoutPeerId
impl Send for MultiaddrWithoutPeerId
impl Sync for MultiaddrWithoutPeerId
impl Unpin for MultiaddrWithoutPeerId
impl UnwindSafe for MultiaddrWithoutPeerId
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,
§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.