pub enum ProxyProtocolV1Info {
Tcp {
source: SocketAddr,
destination: SocketAddr,
},
Udp {
source: SocketAddr,
destination: SocketAddr,
},
Unknown,
}
Variants§
Implementations§
source§impl ProxyProtocolV1Info
impl ProxyProtocolV1Info
pub fn is_ipv4(&self) -> bool
pub fn is_ipv6(&self) -> bool
pub const fn is_tcp(&self) -> bool
pub const fn is_udp(&self) -> bool
pub const fn is_unknown(&self) -> bool
pub const fn source(&self) -> Option<&SocketAddr>
pub const fn destination(&self) -> Option<&SocketAddr>
Trait Implementations§
source§impl Clone for ProxyProtocolV1Info
impl Clone for ProxyProtocolV1Info
source§fn clone(&self) -> ProxyProtocolV1Info
fn clone(&self) -> ProxyProtocolV1Info
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ProxyProtocolV1Info
impl RefUnwindSafe for ProxyProtocolV1Info
impl Send for ProxyProtocolV1Info
impl Sync for ProxyProtocolV1Info
impl Unpin for ProxyProtocolV1Info
impl UnwindSafe for ProxyProtocolV1Info
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)