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
local_addr: Multiaddr
Local connection address.
send_back_addr: Multiaddr
Address used to send back data to the remote.
The socket comes from a listener.
Trait Implementations
sourceimpl Clone for PendingPoint
impl Clone for PendingPoint
sourcefn clone(&self) -> PendingPoint
fn clone(&self) -> PendingPoint
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PendingPoint
impl Debug for PendingPoint
sourceimpl From<ConnectedPoint> for PendingPoint
impl From<ConnectedPoint> for PendingPoint
sourcefn from(endpoint: ConnectedPoint) -> Self
fn from(endpoint: ConnectedPoint) -> Self
Performs the conversion.
sourceimpl Hash for PendingPoint
impl Hash for PendingPoint
sourceimpl PartialEq<PendingPoint> for PendingPoint
impl PartialEq<PendingPoint> for PendingPoint
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &PendingPoint) -> bool
fn ne(&self, other: &PendingPoint) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more