Enum libp2p_core::connection::Endpoint
source · pub enum Endpoint {
Dialer,
Listener,
}
Expand description
The endpoint roles associated with a peer-to-peer communication channel.
Variants§
Implementations§
Trait Implementations§
source§impl From<&ConnectedPoint> for Endpoint
impl From<&ConnectedPoint> for Endpoint
source§fn from(endpoint: &ConnectedPoint) -> Endpoint
fn from(endpoint: &ConnectedPoint) -> Endpoint
Converts to this type from the input type.
source§impl From<ConnectedPoint> for Endpoint
impl From<ConnectedPoint> for Endpoint
source§fn from(endpoint: ConnectedPoint) -> Endpoint
fn from(endpoint: ConnectedPoint) -> Endpoint
Converts to this type from the input type.