Enum netcore::transport::ConnectionOrigin
source · pub enum ConnectionOrigin {
Inbound,
Outbound,
}
Expand description
Origin of how a Connection was established.
Variants§
Inbound
Inbound
indicates that we are the listener for this connection.
Outbound
Outbound
indicates that we are the dialer for this connection.
Implementations§
Trait Implementations§
source§impl Clone for ConnectionOrigin
impl Clone for ConnectionOrigin
source§fn clone(&self) -> ConnectionOrigin
fn clone(&self) -> ConnectionOrigin
Returns a copy 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 Debug for ConnectionOrigin
impl Debug for ConnectionOrigin
source§impl Display for ConnectionOrigin
impl Display for ConnectionOrigin
source§impl Hash for ConnectionOrigin
impl Hash for ConnectionOrigin
source§impl PartialEq<ConnectionOrigin> for ConnectionOrigin
impl PartialEq<ConnectionOrigin> for ConnectionOrigin
source§fn eq(&self, other: &ConnectionOrigin) -> bool
fn eq(&self, other: &ConnectionOrigin) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ConnectionOrigin
impl Serialize for ConnectionOrigin
impl Copy for ConnectionOrigin
impl Eq for ConnectionOrigin
impl StructuralEq for ConnectionOrigin
impl StructuralPartialEq for ConnectionOrigin
Auto Trait Implementations§
impl RefUnwindSafe for ConnectionOrigin
impl Send for ConnectionOrigin
impl Sync for ConnectionOrigin
impl Unpin for ConnectionOrigin
impl UnwindSafe for ConnectionOrigin
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.