[][src]Struct ipfs::MultiaddrWithPeerId

pub struct MultiaddrWithPeerId {
    pub multiaddr: MultiaddrWithoutPeerId,
    pub peer_id: PeerId,

A Multiaddr paired with a discrete PeerId. The Multiaddr can contain a Protocol::P2p, but it's not as easy to work with, and some functionalities don't support it being contained within the Multiaddr.


multiaddr: MultiaddrWithoutPeerId

The Multiaddr without the Protocol::P2p suffix.

peer_id: PeerId

The peer id from the Protocol::P2p suffix.

Trait Implementations

impl Clone for MultiaddrWithPeerId[src]

impl Debug for MultiaddrWithPeerId[src]

impl Display for MultiaddrWithPeerId[src]

impl Eq for MultiaddrWithPeerId[src]

impl From<(MultiaddrWithoutPeerId, PeerId)> for MultiaddrWithPeerId[src]

impl From<MultiaddrWithPeerId> for MultiaddrWithoutPeerId[src]

impl From<MultiaddrWithPeerId> for Multiaddr[src]

impl FromStr for MultiaddrWithPeerId[src]

type Err = MultiaddrWrapperError

The associated error which can be returned from parsing.

impl Hash for MultiaddrWithPeerId[src]

impl PartialEq<MultiaddrWithPeerId> for MultiaddrWithPeerId[src]

impl StructuralEq for MultiaddrWithPeerId[src]

impl StructuralPartialEq for MultiaddrWithPeerId[src]

impl TryFrom<Multiaddr> for MultiaddrWithPeerId[src]

type Error = MultiaddrWrapperError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]