pub struct NetInfo {
pub src_ip: IpAddr,
pub dst_ip: IpAddr,
pub arp_type: Option<ArpType>,
/* private fields */
}Expand description
Info extracted from the network layer header.
Fields§
§src_ip: IpAddrSource IP address.
dst_ip: IpAddrDestination IP address.
arp_type: Option<ArpType>ARP message type, if the packet is an ARP packet.
Trait Implementations§
impl Copy for NetInfo
impl Eq for NetInfo
impl StructuralPartialEq for NetInfo
Auto Trait Implementations§
impl Freeze for NetInfo
impl RefUnwindSafe for NetInfo
impl Send for NetInfo
impl Sync for NetInfo
impl Unpin for NetInfo
impl UnsafeUnpin for NetInfo
impl UnwindSafe for NetInfo
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