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) -> PendingPoint
fn from(endpoint: ConnectedPoint) -> PendingPoint
Converts to this type from the input type.
source§impl Hash for PendingPoint
impl Hash for PendingPoint
source§impl PartialEq<PendingPoint> for PendingPoint
impl PartialEq<PendingPoint> for PendingPoint
source§fn eq(&self, other: &PendingPoint) -> bool
fn eq(&self, other: &PendingPoint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PendingPoint
impl StructuralEq for PendingPoint
impl StructuralPartialEq for PendingPoint
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§
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