Enum libp2p_core::connection::PendingPoint
source · pub enum PendingPoint {
Dialer {
role_override: Endpoint,
},
Listener {
local_addr: Multiaddr,
send_back_addr: Multiaddr,
},
}
Expand description
The endpoint roles associated with a pending peer-to-peer connection.
Variants§
Dialer
Fields
§
role_override: Endpoint
Same as ConnectedPoint::Dialer
role_override
.
The socket comes from a dialer.
There is no single address associated with the Dialer of a pending connection. Addresses are dialed in parallel. Only once the first dial is successful is the address of the connection known.
Listener
Fields
The socket comes from a listener.
Trait Implementations§
source§impl Clone for PendingPoint
impl Clone for PendingPoint
source§fn clone(&self) -> PendingPoint
fn clone(&self) -> PendingPoint
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 PendingPoint
impl Debug for PendingPoint
source§impl From<ConnectedPoint> for PendingPoint
impl From<ConnectedPoint> for PendingPoint
source§fn from(endpoint: ConnectedPoint) -> Self
fn from(endpoint: ConnectedPoint) -> Self
Converts to this type from the input type.