pub struct KillArgs {
pub id: u64,
pub query_only: bool,
pub kill_other: bool,
}Expand description
Ending the work of another connection.
Ending a connection of another user cannot be undone and takes away work that is not yours, so it needs a mark of its own beyond the usual confirmation.
Fields§
§id: u64Connection identifier to end.
The argument layer no longer demands it, so publishing the contract of this command costs nothing. Zero stands for absence, because no server hands out a connection under that number, and the refusal is raised where the connection would actually be ended.
Published as --connection, which is the name the manual carries, with
--id kept as an alias for the form this build served first.
query_only: boolEnd only the running statement, keeping the connection open.
Published as --query for the same reason, with --query-only kept.
kill_other: boolAllow ending a connection that belongs to another user.
Trait Implementations§
Source§impl Args for KillArgs
impl Args for KillArgs
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for KillArgs
impl FromArgMatches for KillArgs
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>
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>
ArgMatches to self.