pub enum SubstreamEndpoint<TDialInfo> {
Dialer(TDialInfo),
Listener,
}
Expand description
Endpoint for a received substream.
Variants§
Implementations§
Source§impl<TDialInfo> SubstreamEndpoint<TDialInfo>
impl<TDialInfo> SubstreamEndpoint<TDialInfo>
Trait Implementations§
Source§impl<TDialInfo: Clone> Clone for SubstreamEndpoint<TDialInfo>
impl<TDialInfo: Clone> Clone for SubstreamEndpoint<TDialInfo>
Source§fn clone(&self) -> SubstreamEndpoint<TDialInfo>
fn clone(&self) -> SubstreamEndpoint<TDialInfo>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<TDialInfo: Debug> Debug for SubstreamEndpoint<TDialInfo>
impl<TDialInfo: Debug> Debug for SubstreamEndpoint<TDialInfo>
Source§impl<TDialInfo: PartialEq> PartialEq for SubstreamEndpoint<TDialInfo>
impl<TDialInfo: PartialEq> PartialEq for SubstreamEndpoint<TDialInfo>
Source§fn eq(&self, other: &SubstreamEndpoint<TDialInfo>) -> bool
fn eq(&self, other: &SubstreamEndpoint<TDialInfo>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<TDialInfo: Copy> Copy for SubstreamEndpoint<TDialInfo>
impl<TDialInfo: Eq> Eq for SubstreamEndpoint<TDialInfo>
impl<TDialInfo> StructuralPartialEq for SubstreamEndpoint<TDialInfo>
Auto Trait Implementations§
impl<TDialInfo> Freeze for SubstreamEndpoint<TDialInfo>where
TDialInfo: Freeze,
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more