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 for SubstreamEndpoint<TDialInfo> where
TDialInfo: Clone,
impl<TDialInfo> Clone for SubstreamEndpoint<TDialInfo> where
TDialInfo: Clone,
sourcepub fn clone(&self) -> SubstreamEndpoint<TDialInfo>
pub 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 for SubstreamEndpoint<TDialInfo> where
TDialInfo: Debug,
impl<TDialInfo> Debug for SubstreamEndpoint<TDialInfo> where
TDialInfo: Debug,
sourceimpl<TDialInfo> PartialEq<SubstreamEndpoint<TDialInfo>> for SubstreamEndpoint<TDialInfo> where
TDialInfo: PartialEq<TDialInfo>,
impl<TDialInfo> PartialEq<SubstreamEndpoint<TDialInfo>> for SubstreamEndpoint<TDialInfo> where
TDialInfo: PartialEq<TDialInfo>,
sourcepub fn eq(&self, other: &SubstreamEndpoint<TDialInfo>) -> bool
pub fn eq(&self, other: &SubstreamEndpoint<TDialInfo>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcepub fn ne(&self, other: &SubstreamEndpoint<TDialInfo>) -> bool
pub fn ne(&self, other: &SubstreamEndpoint<TDialInfo>) -> bool
This method tests for !=
.
impl<TDialInfo> Copy for SubstreamEndpoint<TDialInfo> where
TDialInfo: Copy,
impl<TDialInfo> Eq for SubstreamEndpoint<TDialInfo> where
TDialInfo: Eq,
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