Enum proxy_protocol::ProxyHeader [−][src]
The PROXY header emitted at most once at the start of a new connection.
Variants (Non-exhaustive)
This defines the first version specification, known as the “human-readable header format” (section 2.1), and consists of (at most) 107 bytes of data on the wire.
Fields of Version1
family: ProxyAddressFamily
The type of IP-addresses used.
If this is version1::ProxyAddressFamily::Unknown, all the other values are zeroed. In any other case, the rest of the values must have proper values.
addresses: ProxyAddresses
The addresses used to connect to the proxy.
This defines the second version specification, known as the “binary header format” (section 2.2), and consists of a dynamic amount of bytes on the wire, depending on what information the sender wishes to convey.
Fields of Version2
command: ProxyCommand
The command of this header.
transport_protocol: ProxyTransportProtocol
The protocol over which the information was transferred originally.
addresses: ProxyAddresses
The addresses used to connect to the proxy.
Trait Implementations
impl Clone for ProxyHeader
[src]
fn clone(&self) -> ProxyHeader
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ProxyHeader
[src]
impl Eq for ProxyHeader
[src]
impl PartialEq<ProxyHeader> for ProxyHeader
[src]
fn eq(&self, other: &ProxyHeader) -> bool
[src]
fn ne(&self, other: &ProxyHeader) -> bool
[src]
impl StructuralEq for ProxyHeader
[src]
impl StructuralPartialEq for ProxyHeader
[src]
Auto Trait Implementations
impl RefUnwindSafe for ProxyHeader
impl Send for ProxyHeader
impl Sync for ProxyHeader
impl Unpin for ProxyHeader
impl UnwindSafe for ProxyHeader
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,