pub struct ARPEntry {
pub ip_address: Ipv4Addr,
pub hw_type: ARPHardware,
pub flags: ARPFlags,
pub hw_address: Option<[u8; 6]>,
pub device: String,
}
Expand description
An entry in the ARP table
Fields§
§ip_address: Ipv4Addr
IPv4 address
hw_type: ARPHardware
Hardware type
This will almost always be ETHER (or maybe INFINIBAND)
flags: ARPFlags
Internal kernel flags
hw_address: Option<[u8; 6]>
MAC Address
device: String
Device name
Trait Implementations§
source§impl<'de> Deserialize<'de> for ARPEntry
impl<'de> Deserialize<'de> for ARPEntry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ARPEntry
impl RefUnwindSafe for ARPEntry
impl Send for ARPEntry
impl Sync for ARPEntry
impl Unpin for ARPEntry
impl UnwindSafe for ARPEntry
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)