pub struct PingOptions {
pub target: Target,
pub interval: Duration,
pub interface: Option<String>,
pub raw_arguments: Option<Vec<String>>,
}Fields§
§target: Target§interval: Duration§interface: Option<String>§raw_arguments: Option<Vec<String>>Implementations§
Source§impl PingOptions
impl PingOptions
pub fn with_raw_arguments(self, raw_arguments: Vec<impl ToString>) -> Self
Source§impl PingOptions
impl PingOptions
pub fn from_target( target: Target, interval: Duration, interface: Option<String>, ) -> Self
pub fn new( target: impl ToString, interval: Duration, interface: Option<String>, ) -> Self
pub fn new_ipv4( target: impl ToString, interval: Duration, interface: Option<String>, ) -> Self
pub fn new_ipv6( target: impl ToString, interval: Duration, interface: Option<String>, ) -> Self
Trait Implementations§
Source§impl Clone for PingOptions
impl Clone for PingOptions
Source§fn clone(&self) -> PingOptions
fn clone(&self) -> PingOptions
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 moreAuto Trait Implementations§
impl Freeze for PingOptions
impl RefUnwindSafe for PingOptions
impl Send for PingOptions
impl Sync for PingOptions
impl Unpin for PingOptions
impl UnsafeUnpin for PingOptions
impl UnwindSafe for PingOptions
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