pub enum NodeConnectionStatus {
TCP,
UDP,
}
Expand description
Connection status shows whether a connection used or not.
Variants§
TCP
We are not connected to the node directly and need active relays to send packets to this node.
UDP
We are connected to the node directly via UDP so all relays used only for this node connection can go to sleep.
Trait Implementations§
Source§impl Clone for NodeConnectionStatus
impl Clone for NodeConnectionStatus
Source§fn clone(&self) -> NodeConnectionStatus
fn clone(&self) -> NodeConnectionStatus
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 NodeConnectionStatus
impl Debug for NodeConnectionStatus
Source§impl PartialEq for NodeConnectionStatus
impl PartialEq for NodeConnectionStatus
impl Copy for NodeConnectionStatus
impl Eq for NodeConnectionStatus
impl StructuralPartialEq for NodeConnectionStatus
Auto Trait Implementations§
impl Freeze for NodeConnectionStatus
impl RefUnwindSafe for NodeConnectionStatus
impl Send for NodeConnectionStatus
impl Sync for NodeConnectionStatus
impl Unpin for NodeConnectionStatus
impl UnwindSafe for NodeConnectionStatus
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