pub struct RestartOnFailures {
pub restart_on_failures: bool,
pub no_restart_on_failures: bool,
}Fields§
§restart_on_failures: bool§no_restart_on_failures: boolWhether to restart the daemon or not when it crashes (in
start/up mode). Restarting works by forking before running
the work, then re-forking when the child ends in a non-normal
way (exit with an error or by signal). Between restarts, the
parent sleeps a bit, with exponential back-off within a time
range configured by the application. The default restart
behaviour is set by the application; the two options cancel
each other out. Note: debugging crashes will be easiest using
the run mode, which ignores the restart setting (never
restarts).
Trait Implementations§
Source§impl Args for RestartOnFailures
impl Args for RestartOnFailures
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§impl Clone for RestartOnFailures
impl Clone for RestartOnFailures
Source§fn clone(&self) -> RestartOnFailures
fn clone(&self) -> RestartOnFailures
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 Debug for RestartOnFailures
impl Debug for RestartOnFailures
Source§impl Default for RestartOnFailures
impl Default for RestartOnFailures
Source§fn default() -> RestartOnFailures
fn default() -> RestartOnFailures
Returns the “default value” for a type. Read more
Source§impl EvalWithDefault for RestartOnFailures
impl EvalWithDefault for RestartOnFailures
fn explicit_yes_and_no(&self) -> (bool, bool)
fn eval_with_default(&self, default: bool) -> bool
Source§impl FromArgMatches for RestartOnFailures
impl FromArgMatches for RestartOnFailures
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 RestartOnFailures
Auto Trait Implementations§
impl Freeze for RestartOnFailures
impl RefUnwindSafe for RestartOnFailures
impl Send for RestartOnFailures
impl Sync for RestartOnFailures
impl Unpin for RestartOnFailures
impl UnwindSafe for RestartOnFailures
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