pub enum RemoteAddress {
Local,
Invalid,
TcpV4 {
src: SocketAddrV4,
dst: SocketAddrV4,
},
UdpV4 {
src: SocketAddrV4,
dst: SocketAddrV4,
},
TcpV6 {
src: SocketAddrV6,
dst: SocketAddrV6,
},
UdpV6 {
src: SocketAddrV6,
dst: SocketAddrV6,
},
}
Variants§
Trait Implementations§
Source§impl Clone for RemoteAddress
impl Clone for RemoteAddress
Source§fn clone(&self) -> RemoteAddress
fn clone(&self) -> RemoteAddress
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 RemoteAddress
impl RefUnwindSafe for RemoteAddress
impl Send for RemoteAddress
impl Sync for RemoteAddress
impl Unpin for RemoteAddress
impl UnwindSafe for RemoteAddress
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