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: EndpointSame 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
local_addr: MultiaddrLocal connection address.
send_back_addr: MultiaddrAddress used to send back data to the remote.
The socket comes from a listener.
Trait Implementations
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for PendingPoint
impl Send for PendingPoint
impl Sync for PendingPoint
impl Unpin for PendingPoint
impl UnwindSafe for PendingPoint
Blanket Implementations
Mutably borrows from an owned value. Read more