pub struct PingConfig {
pub target: Ipv4Addr,
pub count: u16,
pub timeout: Duration,
pub interval: Duration,
pub packet_size: usize,
pub identifier: Option<u16>,
}Expand description
Configuration for ping operations
Fields§
§target: Ipv4AddrTarget IP address
count: u16Number of ping packets to send
timeout: DurationTimeout for each ping
interval: DurationInterval between pings
packet_size: usizePacket size in bytes
identifier: Option<u16>Custom identifier (if None, random will be generated)
Trait Implementations§
Source§impl Clone for PingConfig
impl Clone for PingConfig
Source§fn clone(&self) -> PingConfig
fn clone(&self) -> PingConfig
Returns a duplicate 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 moreSource§impl Debug for PingConfig
impl Debug for PingConfig
Auto Trait Implementations§
impl Freeze for PingConfig
impl RefUnwindSafe for PingConfig
impl Send for PingConfig
impl Sync for PingConfig
impl Unpin for PingConfig
impl UnwindSafe for PingConfig
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