pub enum IpPair {
V4 {
src: Ipv4Addr,
dst: Ipv4Addr,
},
V6 {
src: Ipv6Addr,
dst: Ipv6Addr,
},
}
Expand description
A pair of IP (v4 or v6) addresses, source and destination.
Variants§
Trait Implementations§
impl Copy for IpPair
impl Eq for IpPair
impl StructuralPartialEq for IpPair
Auto Trait Implementations§
impl Freeze for IpPair
impl RefUnwindSafe for IpPair
impl Send for IpPair
impl Sync for IpPair
impl Unpin for IpPair
impl UnwindSafe for IpPair
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