Enum libp2p_core::connection::ConnectedPoint [−][src]
pub enum ConnectedPoint {
Dialer {
address: Multiaddr,
},
Listener {
local_addr: Multiaddr,
send_back_addr: Multiaddr,
},
}Expand description
The endpoint roles associated with a peer-to-peer connection.
Variants
We dialed the node.
Show fields
Fields of Dialer
address: MultiaddrMultiaddress that was successfully dialed.
We received the node.
Show fields
Implementations
Turns the ConnectedPoint into the corresponding Endpoint.
Returns true if we are Listener.
Returns the address of the remote stored in this struct.
For Dialer, this returns address. For Listener, this returns send_back_addr.
Note that the remote node might not be listening on this address and hence the address might not be usable to establish new connections.
Modifies the address of the remote stored in this struct.
For Dialer, this modifies address. For Listener, this modifies send_back_addr.
Trait Implementations
Performs the conversion.
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 ConnectedPointimpl Send for ConnectedPointimpl Sync for ConnectedPointimpl Unpin for ConnectedPointimpl UnwindSafe for ConnectedPointBlanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V