Enum libp2p_core::connection::SubstreamEndpoint
source · [−]pub enum SubstreamEndpoint<TDialInfo> {
Dialer(TDialInfo),
Listener,
}
Expand description
Endpoint for a received substream.
Variants
Dialer(TDialInfo)
Listener
Implementations
sourceimpl<TDialInfo> SubstreamEndpoint<TDialInfo>
impl<TDialInfo> SubstreamEndpoint<TDialInfo>
Trait Implementations
sourceimpl<TDialInfo: Clone> Clone for SubstreamEndpoint<TDialInfo>
impl<TDialInfo: Clone> Clone for SubstreamEndpoint<TDialInfo>
sourcefn clone(&self) -> SubstreamEndpoint<TDialInfo>
fn clone(&self) -> SubstreamEndpoint<TDialInfo>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<TDialInfo: Debug> Debug for SubstreamEndpoint<TDialInfo>
impl<TDialInfo: Debug> Debug for SubstreamEndpoint<TDialInfo>
sourceimpl<TDialInfo: PartialEq> PartialEq<SubstreamEndpoint<TDialInfo>> for SubstreamEndpoint<TDialInfo>
impl<TDialInfo: PartialEq> PartialEq<SubstreamEndpoint<TDialInfo>> for SubstreamEndpoint<TDialInfo>
sourcefn eq(&self, other: &SubstreamEndpoint<TDialInfo>) -> bool
fn eq(&self, other: &SubstreamEndpoint<TDialInfo>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SubstreamEndpoint<TDialInfo>) -> bool
fn ne(&self, other: &SubstreamEndpoint<TDialInfo>) -> bool
This method tests for !=
.
impl<TDialInfo: Copy> Copy for SubstreamEndpoint<TDialInfo>
impl<TDialInfo: Eq> Eq for SubstreamEndpoint<TDialInfo>
impl<TDialInfo> StructuralEq for SubstreamEndpoint<TDialInfo>
impl<TDialInfo> StructuralPartialEq for SubstreamEndpoint<TDialInfo>
Auto Trait Implementations
impl<TDialInfo> RefUnwindSafe for SubstreamEndpoint<TDialInfo> where
TDialInfo: RefUnwindSafe,
impl<TDialInfo> Send for SubstreamEndpoint<TDialInfo> where
TDialInfo: Send,
impl<TDialInfo> Sync for SubstreamEndpoint<TDialInfo> where
TDialInfo: Sync,
impl<TDialInfo> Unpin for SubstreamEndpoint<TDialInfo> where
TDialInfo: Unpin,
impl<TDialInfo> UnwindSafe for SubstreamEndpoint<TDialInfo> where
TDialInfo: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more