Struct sozu_lib::network::protocol::proxy_protocol::header::HeaderV2 [−][src]
Fields
command: Command
family: u8
addr: ProxyAddr
Methods
impl HeaderV2[src]
impl HeaderV2pub fn new(command: Command, addr_src: SocketAddr, addr_dst: SocketAddr) -> Self[src]
pub fn new(command: Command, addr_src: SocketAddr, addr_dst: SocketAddr) -> Selfpub fn into_bytes(&self) -> Vec<u8>[src]
pub fn into_bytes(&self) -> Vec<u8>pub fn len(&self) -> usize[src]
pub fn len(&self) -> usizeTrait Implementations
impl Debug for HeaderV2[src]
impl Debug for HeaderV2fn 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 HeaderV2[src]
impl PartialEq for HeaderV2