Enum snarkos_node_tcp::ConnectionSide
source · pub enum ConnectionSide {
Initiator,
Responder,
}
Expand description
Indicates who was the initiator and who was the responder when the connection was established.
Variants§
Trait Implementations§
source§impl Clone for ConnectionSide
impl Clone for ConnectionSide
source§fn clone(&self) -> ConnectionSide
fn clone(&self) -> ConnectionSide
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 ConnectionSide
impl Debug for ConnectionSide
source§impl Not for ConnectionSide
impl Not for ConnectionSide
source§impl PartialEq for ConnectionSide
impl PartialEq for ConnectionSide
source§fn eq(&self, other: &ConnectionSide) -> bool
fn eq(&self, other: &ConnectionSide) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ConnectionSide
impl Eq for ConnectionSide
impl StructuralEq for ConnectionSide
impl StructuralPartialEq for ConnectionSide
Auto Trait Implementations§
impl RefUnwindSafe for ConnectionSide
impl Send for ConnectionSide
impl Sync for ConnectionSide
impl Unpin for ConnectionSide
impl UnwindSafe for ConnectionSide
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