pub struct RestartForExecutableChangeOpts {
pub restart_on_upgrades: bool,
pub no_restart_on_upgrades: bool,
}Fields§
§restart_on_upgrades: bool§no_restart_on_upgrades: boolWhether to restart the daemon when its executable is changed (upgraded). Restarts only happen at safe checkpoints. The options cancel each other out; the default is determined by the application (see help text higher up).
Implementations§
Source§impl RestartForExecutableChangeOpts
impl RestartForExecutableChangeOpts
pub fn to_restarter( &self, default_want_restarting: bool, timestamp_formatter: TimestampFormatter, ) -> Result<RestartForExecutableChange>
Trait Implementations§
Source§impl Args for RestartForExecutableChangeOpts
impl Args for RestartForExecutableChangeOpts
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§impl Clone for RestartForExecutableChangeOpts
impl Clone for RestartForExecutableChangeOpts
Source§fn clone(&self) -> RestartForExecutableChangeOpts
fn clone(&self) -> RestartForExecutableChangeOpts
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for RestartForExecutableChangeOpts
impl Default for RestartForExecutableChangeOpts
Source§fn default() -> RestartForExecutableChangeOpts
fn default() -> RestartForExecutableChangeOpts
Returns the “default value” for a type. Read more
Source§impl EvalWithDefault for RestartForExecutableChangeOpts
impl EvalWithDefault for RestartForExecutableChangeOpts
fn explicit_yes_and_no(&self) -> (bool, bool)
fn eval_with_default(&self, default: bool) -> bool
Source§impl FromArgMatches for RestartForExecutableChangeOpts
impl FromArgMatches for RestartForExecutableChangeOpts
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.impl Copy for RestartForExecutableChangeOpts
Auto Trait Implementations§
impl Freeze for RestartForExecutableChangeOpts
impl RefUnwindSafe for RestartForExecutableChangeOpts
impl Send for RestartForExecutableChangeOpts
impl Sync for RestartForExecutableChangeOpts
impl Unpin for RestartForExecutableChangeOpts
impl UnwindSafe for RestartForExecutableChangeOpts
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