pub struct StopCommand {
pub in_dir: Option<String>,
pub by_name: Option<String>,
pub start_time: Option<u64>,
pub cmd: bool,
pub signal: Option<String>,
/* private fields */
}Expand description
Stop process(es) gracefully with SIGTERM
Fields§
§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
start_time: Option<u64>Act only if the process still has this start time (Unix seconds, start_time
in its JSON): a PID the OS gave to a new process is ruled out. One PID target
cmd: boolMatch name targets and –by as a substring of the process name or full command line (like pkill -f)
signal: Option<String>Initial signal to send instead of SIGTERM (e.g. HUP, USR1, INT)
Implementations§
Trait Implementations§
Source§impl Args for StopCommand
impl Args for StopCommand
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 StopCommand
impl Debug for StopCommand
Source§impl FromArgMatches for StopCommand
impl FromArgMatches for StopCommand
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 StopCommand
impl RefUnwindSafe for StopCommand
impl Send for StopCommand
impl Sync for StopCommand
impl Unpin for StopCommand
impl UnsafeUnpin for StopCommand
impl UnwindSafe for StopCommand
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