pub struct SocketDesc {
pub protocol: Protocol,
pub local: SocketEndpoint,
pub remote: SocketEndpoint,
}
Expand description
Socket quintuplet
Fields§
§protocol: Protocol
§local: SocketEndpoint
§remote: SocketEndpoint
Implementations§
Source§impl SocketDesc
impl SocketDesc
pub fn new( protocol: Protocol, local: impl Into<SocketEndpoint>, remote: impl Into<SocketEndpoint>, ) -> Self
Trait Implementations§
Source§impl Clone for SocketDesc
impl Clone for SocketDesc
Source§fn clone(&self) -> SocketDesc
fn clone(&self) -> SocketDesc
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SocketDesc
impl Debug for SocketDesc
Source§impl Display for SocketDesc
impl Display for SocketDesc
Source§impl From<Connection> for SocketDesc
impl From<Connection> for SocketDesc
Source§fn from(c: Connection) -> Self
fn from(c: Connection) -> Self
Converts to this type from the input type.
Source§impl From<ConnectionMeta> for SocketDesc
impl From<ConnectionMeta> for SocketDesc
Source§fn from(c: ConnectionMeta) -> Self
fn from(c: ConnectionMeta) -> Self
Converts to this type from the input type.
Source§impl Hash for SocketDesc
impl Hash for SocketDesc
Source§impl Ord for SocketDesc
impl Ord for SocketDesc
Source§fn cmp(&self, other: &SocketDesc) -> Ordering
fn cmp(&self, other: &SocketDesc) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SocketDesc
impl PartialEq for SocketDesc
Source§impl PartialOrd for SocketDesc
impl PartialOrd for SocketDesc
Source§impl TryFrom<SocketDesc> for ConnectionMeta
impl TryFrom<SocketDesc> for ConnectionMeta
impl Copy for SocketDesc
impl Eq for SocketDesc
impl StructuralPartialEq for SocketDesc
Auto Trait Implementations§
impl Freeze for SocketDesc
impl RefUnwindSafe for SocketDesc
impl Send for SocketDesc
impl Sync for SocketDesc
impl Unpin for SocketDesc
impl UnwindSafe for SocketDesc
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