[][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.

Fields

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
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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]