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.
source§impl PartialEq for Endpoint
impl PartialEq for Endpoint
impl Copy for Endpoint
impl Eq for Endpoint
impl StructuralEq for Endpoint
impl StructuralPartialEq for Endpoint
Auto Trait Implementations§
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnwindSafe for Endpoint
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