[][src]Struct libp2p_core::connection::Connected

pub struct Connected<I> {
    pub endpoint: ConnectedPoint,
    pub info: I,
}

Information about a successfully established connection.

Fields

endpoint: ConnectedPoint

The connected endpoint, including network address information.

info: I

Information obtained from the transport.

Implementations

impl<I> Connected<I> where
    I: ConnectionInfo
[src]

pub fn peer_id(&self) -> &I::PeerId[src]

Trait Implementations

impl<I: Clone> Clone for Connected<I>[src]

impl<I: Debug> Debug for Connected<I>[src]

impl<I: Eq> Eq for Connected<I>[src]

impl<I: PartialEq> PartialEq<Connected<I>> for Connected<I>[src]

impl<I> StructuralEq for Connected<I>[src]

impl<I> StructuralPartialEq for Connected<I>[src]

Auto Trait Implementations

impl<I> RefUnwindSafe for Connected<I> where
    I: RefUnwindSafe

impl<I> Send for Connected<I> where
    I: Send

impl<I> Sync for Connected<I> where
    I: Sync

impl<I> Unpin for Connected<I> where
    I: Unpin

impl<I> UnwindSafe for Connected<I> where
    I: UnwindSafe

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, 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, 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>,