Struct ya_relay_stack::socket::SocketDesc
source · pub struct SocketDesc {
pub protocol: Protocol,
pub local: SocketEndpoint,
pub remote: SocketEndpoint,
}Expand description
Socket quintuplet
Fields§
§protocol: Protocol§local: SocketEndpoint§remote: SocketEndpointImplementations§
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 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<SocketDesc> for SocketDesc
impl PartialEq<SocketDesc> for SocketDesc
source§fn eq(&self, other: &SocketDesc) -> bool
fn eq(&self, other: &SocketDesc) -> bool
source§impl PartialOrd<SocketDesc> for SocketDesc
impl PartialOrd<SocketDesc> for SocketDesc
source§fn partial_cmp(&self, other: &SocketDesc) -> Option<Ordering>
fn partial_cmp(&self, other: &SocketDesc) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more