Enum proxy_protocol::version2::ProxyAddresses[][src]

pub enum ProxyAddresses {
    Unspec,
    Ipv4 {
        source: SocketAddrV4,
        destination: SocketAddrV4,
    },
    Ipv6 {
        source: SocketAddrV6,
        destination: SocketAddrV6,
    },
    Unix {
        source: [u8; 108],
        destination: [u8; 108],
    },
}

Variants

Unspec
Ipv4

Fields of Ipv4

source: SocketAddrV4destination: SocketAddrV4
Ipv6

Fields of Ipv6

source: SocketAddrV6destination: SocketAddrV6
Unix

Fields of Unix

source: [u8; 108]destination: [u8; 108]

Trait Implementations

impl Clone for ProxyAddresses[src]

impl Copy for ProxyAddresses[src]

impl Debug for ProxyAddresses[src]

impl Eq for ProxyAddresses[src]

impl Hash for ProxyAddresses[src]

impl PartialEq<ProxyAddresses> for ProxyAddresses[src]

impl StructuralEq for ProxyAddresses[src]

impl StructuralPartialEq for ProxyAddresses[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.