pub struct Args {Show 16 fields
pub syscall_number: bool,
pub attach: Option<pid_t>,
pub no_abbrev: bool,
pub string_limit: Option<usize>,
pub file: Option<PathBuf>,
pub summary_only: bool,
pub summary: bool,
pub successful_only: bool,
pub failed_only: bool,
pub env: Vec<String>,
pub username: Option<String>,
pub follow_forks: bool,
pub syscall_times: bool,
pub expr: Vec<String>,
pub json: bool,
pub command: Option<ArgCommand>,
}Fields§
§syscall_number: boolDisplay system call numbers
attach: Option<pid_t>Attach to a running process
no_abbrev: boolPrint un-abbreviated versions of strings
string_limit: Option<usize>Maximum string argument size to print
file: Option<PathBuf>Name of the file to print output to
summary_only: boolReport a summary instead of the regular output
summary: boolReport a summary in addition to the regular output
successful_only: boolPrint only syscalls that returned without an error code
failed_only: boolPrint only syscalls that returned with an error code
env: Vec<String>–env var=val adds an environment variable. –env var removes an environment variable.
username: Option<String>Run the command with uid, gid and supplementary groups of username.
follow_forks: boolTrace child processes as they are created by currently traced processes.
syscall_times: boolShow the time spent in system calls in ms.
expr: Vec<String>A qualifying expression which modifies which events to trace or how to trace them.
json: boolDisplay output in JSON format
command: Option<ArgCommand>Implementations§
Trait Implementations§
source§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 try_parse() -> Result<Self, Error<RichFormatter>>
fn try_parse() -> Result<Self, Error<RichFormatter>>
Parse from
std::env::args_os(), return Err on error.source§fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, exit on error
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
source§fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, exit on error
source§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, return Err on error.
Auto Trait Implementations§
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin 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