Type Alias libp2p_kad::KadConnectionType

source ·
pub type KadConnectionType = ConnectionType;
👎Deprecated: Import the kad module instead and refer to this type as kad::ConnectionType.

Aliased Type§

enum KadConnectionType {
    NotConnected = 0,
    Connected = 1,
    CanConnect = 2,
    CannotConnect = 3,
}

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 ConnectionType

source§

fn clone(&self) -> ConnectionType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ConnectionType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for ConnectionType

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for ConnectionType

source§

fn eq(&self, other: &ConnectionType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for ConnectionType

source§

impl Eq for ConnectionType

source§

impl StructuralPartialEq for ConnectionType