Struct libicmp::ping::PingBuilder
[−]
[src]
pub struct PingBuilder<'a> { /* fields omitted */ }
Used for configuring a Ping operation.
Methods
impl<'a> PingBuilder<'a>
[src]
fn new() -> PingBuilder<'a>
[src]
Returns a new PingBuilder for configuring a Ping operation.
fn host(self, host: &'a str) -> PingBuilder<'a>
[src]
Sets the host that will be pinged.
fn num_pings(self, num_pings: u64) -> PingBuilder<'a>
[src]
Sets the number of echo requests to be issued.
fn interval_secs(self, interval_secs: u64) -> PingBuilder<'a>
[src]
Sets the interval in seconds between echo requests.
fn timeout_secs(self, timeout_secs: u64) -> PingBuilder<'a>
[src]
Sets the time in seconds before the ping operation times out.
fn debug(self, debug: bool) -> PingBuilder<'a>
[src]
Prints debug information to standard out if set to true
.
fn build(self) -> Ping<'a>
[src]
Returns a new Ping object.