pub enum Endpoint {
Dialer,
Listener,
}
Expand description
The endpoint roles associated with a peer-to-peer communication channel.
Variants
Dialer
The socket comes from a dialer.
Listener
The socket comes from a listener.
Implementations
Trait Implementations
sourceimpl<'_> From<&'_ ConnectedPoint> for Endpoint
impl<'_> From<&'_ ConnectedPoint> for Endpoint
sourcepub fn from(endpoint: &ConnectedPoint) -> Endpoint
pub fn from(endpoint: &ConnectedPoint) -> Endpoint
Performs the conversion.
sourceimpl From<ConnectedPoint> for Endpoint
impl From<ConnectedPoint> for Endpoint
sourcepub fn from(endpoint: ConnectedPoint) -> Endpoint
pub fn from(endpoint: ConnectedPoint) -> Endpoint
Performs the conversion.
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
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> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more