Struct libp2p::core::Connected [−][src]
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]
I: ConnectionInfo,
pub fn peer_id(&self) -> &<I as ConnectionInfo>::PeerId
[src]
Trait Implementations
impl<I> Clone for Connected<I> where
I: Clone,
[src]
I: Clone,
impl<I> Debug for Connected<I> where
I: Debug,
[src]
I: Debug,
impl<I> Eq for Connected<I> where
I: Eq,
[src]
I: Eq,
impl<I> PartialEq<Connected<I>> for Connected<I> where
I: PartialEq<I>,
[src]
I: PartialEq<I>,
pub fn eq(&self, other: &Connected<I>) -> bool
[src]
pub fn ne(&self, other: &Connected<I>) -> bool
[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,
I: RefUnwindSafe,
impl<I> Send for Connected<I> where
I: Send,
I: Send,
impl<I> Sync for Connected<I> where
I: Sync,
I: Sync,
impl<I> Unpin for Connected<I> where
I: Unpin,
I: Unpin,
impl<I> UnwindSafe for Connected<I> where
I: UnwindSafe,
I: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,