pub enum Addresses {
Unspecified,
Inet {
source: SocketAddr,
destination: SocketAddr,
},
Unix {
source: Box<[u8; 108]>,
destination: Box<[u8; 108]>,
},
}Expand description
Address information carried by a PROXY protocol v2 header.
Variants§
Unspecified
No address information is carried.
Inet
TCP or UDP IP socket addresses.
Unix
UNIX socket addresses.
Trait Implementations§
impl Eq for Addresses
impl StructuralPartialEq for Addresses
Auto Trait Implementations§
impl Freeze for Addresses
impl RefUnwindSafe for Addresses
impl Send for Addresses
impl Sync for Addresses
impl Unpin for Addresses
impl UnsafeUnpin for Addresses
impl UnwindSafe for Addresses
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more