pub struct ArpMonitor {
pub interval_ms: u64,
pub targets: Vec<[u8; 4]>,
pub last_check: u64,
}Expand description
ARP-based link health monitor
Fields§
§interval_ms: u64Monitoring interval in milliseconds
targets: Vec<[u8; 4]>ARP probe target IP addresses
last_check: u64Timestamp of the last ARP probe (ms)
Implementations§
Source§impl ArpMonitor
impl ArpMonitor
Sourcepub fn add_target(&mut self, ip: [u8; 4])
pub fn add_target(&mut self, ip: [u8; 4])
Add an ARP probe target IP address
Trait Implementations§
Source§impl Clone for ArpMonitor
impl Clone for ArpMonitor
Source§fn clone(&self) -> ArpMonitor
fn clone(&self) -> ArpMonitor
Returns a duplicate of the value. Read more
1.0.0§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 ArpMonitor
impl RefUnwindSafe for ArpMonitor
impl Send for ArpMonitor
impl Sync for ArpMonitor
impl Unpin for ArpMonitor
impl UnwindSafe for ArpMonitor
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)