pub struct PsCommand {
pub name: Option<String>,
pub in_dir: Option<String>,
pub path: Option<String>,
pub min_cpu: Option<f32>,
pub min_mem: Option<f64>,
pub status: Option<String>,
pub json: bool,
pub verbose: bool,
pub limit: Option<usize>,
pub sort: String,
}Expand description
List processes
Fields§
§name: Option<String>Process name or pattern to filter by
in_dir: Option<String>Filter by directory (defaults to current directory if no path given)
path: Option<String>Filter by executable path
min_cpu: Option<f32>Only show processes using more than this CPU %
min_mem: Option<f64>Only show processes using more than this memory (MB)
status: Option<String>Filter by status: running, sleeping, stopped, zombie
json: boolOutput as JSON
verbose: boolShow verbose output with command line, cwd, and parent PID
limit: Option<usize>Limit the number of results
sort: StringSort by: cpu, mem, pid, name
Implementations§
Trait Implementations§
Source§impl Args for PsCommand
impl Args for PsCommand
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 FromArgMatches for PsCommand
impl FromArgMatches for PsCommand
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.Auto Trait Implementations§
impl Freeze for PsCommand
impl RefUnwindSafe for PsCommand
impl Send for PsCommand
impl Sync for PsCommand
impl Unpin for PsCommand
impl UnwindSafe for PsCommand
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