#[repr(u8)]pub enum ProxyTransportFam {
UNSPEC = 0,
STREAM = 1,
DGRAM = 2,
}Expand description
A transport family.
Other values are unspecified and must not be emitted in version 2 of this protocol and must be rejected as invalid by receivers.`
Variants§
UNSPEC = 0
the connection is forwarded for an unknown, unspecified or unsupported protocol. The sender should use this family when sending LOCAL commands or when dealing with unsupported protocol families. The receiver is free to accept the connection anyway and use the real endpoint addresses or to reject it. The receiver should ignore address information.
STREAM = 1
the forwarded connection uses a SOCK_STREAM protocol (eg: TCP or UNIX_STREAM). When used with AF_INET/AF_INET6 (TCP), the addresses are followed by the source and destination ports represented on 2 bytes each in network byte order.
DGRAM = 2
the forwarded connection uses a SOCK_DGRAM protocol (eg: UDP or UNIX_DGRAM). When used with AF_INET/AF_INET6 (UDP), the addresses are followed by the source and destination ports represented on 2 bytes each in network byte order.
Trait Implementations§
Source§impl Clone for ProxyTransportFam
impl Clone for ProxyTransportFam
Source§fn clone(&self) -> ProxyTransportFam
fn clone(&self) -> ProxyTransportFam
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProxyTransportFam
impl Debug for ProxyTransportFam
Source§impl Display for ProxyTransportFam
impl Display for ProxyTransportFam
impl Eq for ProxyTransportFam
Source§impl From<&ProxyTransportFam> for u8
impl From<&ProxyTransportFam> for u8
Source§fn from(value: &ProxyTransportFam) -> Self
fn from(value: &ProxyTransportFam) -> Self
Source§impl From<ProxyTransportFam> for u8
impl From<ProxyTransportFam> for u8
Source§fn from(value: ProxyTransportFam) -> Self
fn from(value: ProxyTransportFam) -> Self
Source§impl PartialEq for ProxyTransportFam
impl PartialEq for ProxyTransportFam
Source§fn eq(&self, other: &ProxyTransportFam) -> bool
fn eq(&self, other: &ProxyTransportFam) -> bool
self and other values to be equal, and is used by ==.