pub struct SocketAddresses { /* private fields */ }Expand description
Socket addresses from a PROXY protocol v1 TCP header.
Implementations§
Source§impl SocketAddresses
impl SocketAddresses
Sourcepub const fn address_family(&self) -> AddressFamily
pub const fn address_family(&self) -> AddressFamily
Returns the header address family.
Sourcepub const fn source(&self) -> SocketAddr
pub const fn source(&self) -> SocketAddr
Returns the source socket address.
Sourcepub const fn destination(&self) -> SocketAddr
pub const fn destination(&self) -> SocketAddr
Returns the destination socket address.
Trait Implementations§
Source§impl Clone for SocketAddresses
impl Clone for SocketAddresses
Source§fn clone(&self) -> SocketAddresses
fn clone(&self) -> SocketAddresses
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SocketAddresses
Source§impl Debug for SocketAddresses
impl Debug for SocketAddresses
impl Eq for SocketAddresses
Source§impl PartialEq for SocketAddresses
impl PartialEq for SocketAddresses
Source§fn eq(&self, other: &SocketAddresses) -> bool
fn eq(&self, other: &SocketAddresses) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SocketAddresses
Auto Trait Implementations§
impl Freeze for SocketAddresses
impl RefUnwindSafe for SocketAddresses
impl Send for SocketAddresses
impl Sync for SocketAddresses
impl Unpin for SocketAddresses
impl UnsafeUnpin for SocketAddresses
impl UnwindSafe for SocketAddresses
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