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

Methods

impl HeaderV1
[src]

Trait Implementations

impl Debug for HeaderV1
[src]

Formats the value using the given formatter. Read more

impl PartialEq for HeaderV1
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for HeaderV1
[src]

Auto Trait Implementations

impl Send for HeaderV1

impl Sync for HeaderV1