pub struct StuckCommand {
pub timeout: u64,
pub kill: bool,
pub dry_run: bool,
pub yes: bool,
pub json: bool,
pub verbose: bool,
pub wide: bool,
pub in_dir: Option<String>,
pub by_name: Option<String>,
pub cmd: bool,
}Expand description
Find stuck/hung processes
Fields§
§timeout: u64Only processes running longer than this many seconds (stuck: over 50% CPU or blocked, for 2 seconds)
kill: boolKill found stuck processes
dry_run: boolShow what would be killed without actually killing
yes: boolSkip confirmation when killing
json: boolOutput as JSON
verbose: boolShow verbose output
wide: boolPrint full directories and arguments instead of fitting the terminal width
in_dir: Option<String>Filter by directory; takes the next word as the directory unless it starts with ‘-’ (bare –in is the current directory, –in=DIR is explicit)
by_name: Option<String>Filter by process name
cmd: boolMatch –by as a substring of the process name or full command line (like pkill -f)
Implementations§
Trait Implementations§
Source§impl Args for StuckCommand
impl Args for StuckCommand
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 Debug for StuckCommand
impl Debug for StuckCommand
Source§impl FromArgMatches for StuckCommand
impl FromArgMatches for StuckCommand
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 StuckCommand
impl RefUnwindSafe for StuckCommand
impl Send for StuckCommand
impl Sync for StuckCommand
impl Unpin for StuckCommand
impl UnsafeUnpin for StuckCommand
impl UnwindSafe for StuckCommand
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