Struct sozu_lib::network::protocol::proxy_protocol::header::HeaderV1 [−][src]
pub struct HeaderV1 {
pub protocol: ProtocolSupportedV1,
pub addr_src: SocketAddr,
pub addr_dst: SocketAddr,
}Proxy Protocol header for version 1 (text version) Example:
- TCP/IPv4:
PROXY TCP4 255.255.255.255 255.255.255.255 65535 65535\r\n - TCP/IPv6:
PROXY TCP6 ffff:f...f:ffff ffff:f...f:ffff 65535 65535\r\n - Unknown:
PROXY UNKNOWN\r\n
Fields
protocol: ProtocolSupportedV1
addr_src: SocketAddr
addr_dst: SocketAddr
Methods
impl HeaderV1[src]
impl HeaderV1pub fn new(addr_src: SocketAddr, addr_dst: SocketAddr) -> Self[src]
pub fn new(addr_src: SocketAddr, addr_dst: SocketAddr) -> Selfpub fn into_bytes(&self) -> Vec<u8>[src]
pub fn into_bytes(&self) -> Vec<u8>Trait Implementations
impl Debug for HeaderV1[src]
impl Debug for HeaderV1fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for HeaderV1[src]
impl PartialEq for HeaderV1fn eq(&self, other: &HeaderV1) -> bool[src]
fn eq(&self, other: &HeaderV1) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &HeaderV1) -> bool[src]
fn ne(&self, other: &HeaderV1) -> boolThis method tests for !=.
impl Eq for HeaderV1[src]
impl Eq for HeaderV1