Enum discv5::handler::ConnectionDirection
source · pub enum ConnectionDirection {
Incoming,
Outgoing,
}
Expand description
How we connected to the node.
Variants§
Trait Implementations§
source§impl Clone for ConnectionDirection
impl Clone for ConnectionDirection
source§fn clone(&self) -> ConnectionDirection
fn clone(&self) -> ConnectionDirection
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 ConnectionDirection
impl Debug for ConnectionDirection
source§impl Display for ConnectionDirection
impl Display for ConnectionDirection
source§impl PartialEq for ConnectionDirection
impl PartialEq for ConnectionDirection
source§fn eq(&self, other: &ConnectionDirection) -> bool
fn eq(&self, other: &ConnectionDirection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ConnectionDirection
impl Eq for ConnectionDirection
impl StructuralPartialEq for ConnectionDirection
Auto Trait Implementations§
impl Freeze for ConnectionDirection
impl RefUnwindSafe for ConnectionDirection
impl Send for ConnectionDirection
impl Sync for ConnectionDirection
impl Unpin for ConnectionDirection
impl UnwindSafe for ConnectionDirection
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