pub struct PingOpts {
pub count: u32,
pub timeout: Duration,
}Expand description
Options for an ICMP echo probe.
Fields§
§count: u32Number of echo requests to send.
timeout: DurationPer-packet timeout.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PingOpts
impl<'de> Deserialize<'de> for PingOpts
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
impl Copy for PingOpts
impl Eq for PingOpts
impl StructuralPartialEq for PingOpts
Auto Trait Implementations§
impl Freeze for PingOpts
impl RefUnwindSafe for PingOpts
impl Send for PingOpts
impl Sync for PingOpts
impl Unpin for PingOpts
impl UnsafeUnpin for PingOpts
impl UnwindSafe for PingOpts
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