pub struct PingBuilder<'a> { /* private fields */ }
Expand description
Used for configuring a Ping operation.
Implementations§
Source§impl<'a> PingBuilder<'a>
impl<'a> PingBuilder<'a>
Sourcepub fn new() -> PingBuilder<'a>
pub fn new() -> PingBuilder<'a>
Returns a new PingBuilder for configuring a Ping operation.
Sourcepub fn host(self, host: &'a str) -> PingBuilder<'a>
pub fn host(self, host: &'a str) -> PingBuilder<'a>
Sets the host that will be pinged.
Sourcepub fn num_pings(self, num_pings: u64) -> PingBuilder<'a>
pub fn num_pings(self, num_pings: u64) -> PingBuilder<'a>
Sets the number of echo requests to be issued.
Sourcepub fn interval_secs(self, interval_secs: u64) -> PingBuilder<'a>
pub fn interval_secs(self, interval_secs: u64) -> PingBuilder<'a>
Sets the interval in seconds between echo requests.
Sourcepub fn timeout_secs(self, timeout_secs: u64) -> PingBuilder<'a>
pub fn timeout_secs(self, timeout_secs: u64) -> PingBuilder<'a>
Sets the time in seconds before the ping operation times out.
Sourcepub fn debug(self, debug: bool) -> PingBuilder<'a>
pub fn debug(self, debug: bool) -> PingBuilder<'a>
Prints debug information to standard out if set to true
.
Auto Trait Implementations§
impl<'a> Freeze for PingBuilder<'a>
impl<'a> RefUnwindSafe for PingBuilder<'a>
impl<'a> Send for PingBuilder<'a>
impl<'a> Sync for PingBuilder<'a>
impl<'a> Unpin for PingBuilder<'a>
impl<'a> UnwindSafe for PingBuilder<'a>
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