pub struct Args {Show 23 fields
pub targets: Vec<String>,
pub count: Option<u32>,
pub vcount: Option<u32>,
pub loop: bool,
pub interval: u64,
pub period: u64,
pub timeout: u64,
pub retry: u32,
pub backoff: f64,
pub size: usize,
pub file: Option<String>,
pub alive: bool,
pub unreach: bool,
pub quiet: bool,
pub stats: bool,
pub elapsed: bool,
pub addr: bool,
pub timestamp: bool,
pub json: bool,
pub ipv4: bool,
pub ipv6: bool,
pub report_all_rtts: bool,
pub reachable: Option<u32>,
}Fields§
§targets: Vec<String>Target hosts
count: Option<u32>Count mode: send N pings to each target
vcount: Option<u32>Same as -c but verbose output (all RTTs)
loop: boolLoop mode: send pings forever
interval: u64Interval between packets in ms (default: 10)
period: u64Per-host interval in ms (default: 1000)
timeout: u64Timeout in ms (default: 500)
retry: u32Number of retries (default: 3)
backoff: f64Exponential backoff factor (default: 1.5)
size: usizePing data size in bytes (default: 56)
file: Option<String>Read hosts from file (- = stdin)
alive: boolShow only alive hosts
unreach: boolShow only unreachable hosts
quiet: boolQuiet: don’t show per-ping results
stats: boolPrint final stats
elapsed: boolShow elapsed time on received packets
addr: boolShow targets by address
timestamp: boolTimestamp before each line
json: boolJSON output (requires -c, -C or -l)
ipv4: boolUse IPv4 only
ipv6: boolUse IPv6 only
report_all_rtts: boolShow all individual RTTs
reachable: Option<u32>Minimum number of reachable hosts to be considered success
Implementations§
Source§impl Args
impl Args
pub fn effective_count(&self) -> Option<u32>
Sourcepub fn is_verbose_count(&self) -> bool
pub fn is_verbose_count(&self) -> bool
Ist verbose-count aktiv?
Trait Implementations§
Source§impl Args for Args
impl Args for Args
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Args
impl CommandFactory for Args
Source§impl FromArgMatches for Args
impl FromArgMatches for Args
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for Args
impl Parser for Args
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnsafeUnpin for Args
impl UnwindSafe for Args
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