Struct ya_relay_stack::connection::ConnectionMeta
source · pub struct ConnectionMeta {
pub protocol: Protocol,
pub local: IpEndpoint,
pub remote: IpEndpoint,
}Fields§
§protocol: Protocol§local: IpEndpoint§remote: IpEndpointImplementations§
source§impl ConnectionMeta
impl ConnectionMeta
pub fn new(protocol: Protocol, local: IpEndpoint, remote: IpEndpoint) -> Self
pub fn to_socket_addr(&self) -> SocketAddr
Trait Implementations§
source§impl Clone for ConnectionMeta
impl Clone for ConnectionMeta
source§fn clone(&self) -> ConnectionMeta
fn clone(&self) -> ConnectionMeta
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 ConnectionMeta
impl Debug for ConnectionMeta
source§impl<'a> From<&'a ConnectionMeta> for SocketEndpoint
impl<'a> From<&'a ConnectionMeta> for SocketEndpoint
source§fn from(c: &'a ConnectionMeta) -> Self
fn from(c: &'a ConnectionMeta) -> Self
Converts to this type from the input type.
source§impl From<Connection> for ConnectionMeta
impl From<Connection> for ConnectionMeta
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 ConnectionMeta
impl Hash for ConnectionMeta
source§impl Ord for ConnectionMeta
impl Ord for ConnectionMeta
source§fn cmp(&self, other: &ConnectionMeta) -> Ordering
fn cmp(&self, other: &ConnectionMeta) -> 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<ConnectionMeta> for ConnectionMeta
impl PartialEq<ConnectionMeta> for ConnectionMeta
source§fn eq(&self, other: &ConnectionMeta) -> bool
fn eq(&self, other: &ConnectionMeta) -> bool
source§impl PartialOrd<ConnectionMeta> for ConnectionMeta
impl PartialOrd<ConnectionMeta> for ConnectionMeta
source§fn partial_cmp(&self, other: &ConnectionMeta) -> Option<Ordering>
fn partial_cmp(&self, other: &ConnectionMeta) -> 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