Enum libp2p_kad::protocol::KadConnectionType
source · pub enum KadConnectionType {
NotConnected = 0,
Connected = 1,
CanConnect = 2,
CannotConnect = 3,
}
Expand description
Status of our connection to a node reported by the Kademlia protocol.
Variants§
NotConnected = 0
Sender hasn’t tried to connect to peer.
Connected = 1
Sender is currently connected to peer.
CanConnect = 2
Sender was recently connected to peer.
CannotConnect = 3
Sender tried to connect to peer but failed.
Trait Implementations§
source§impl Clone for KadConnectionType
impl Clone for KadConnectionType
source§fn clone(&self) -> KadConnectionType
fn clone(&self) -> KadConnectionType
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 KadConnectionType
impl Debug for KadConnectionType
source§impl Hash for KadConnectionType
impl Hash for KadConnectionType
source§impl PartialEq for KadConnectionType
impl PartialEq for KadConnectionType
source§fn eq(&self, other: &KadConnectionType) -> bool
fn eq(&self, other: &KadConnectionType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for KadConnectionType
impl Eq for KadConnectionType
impl StructuralPartialEq for KadConnectionType
Auto Trait Implementations§
impl Freeze for KadConnectionType
impl RefUnwindSafe for KadConnectionType
impl Send for KadConnectionType
impl Sync for KadConnectionType
impl Unpin for KadConnectionType
impl UnwindSafe for KadConnectionType
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)