Struct ntp_daemon::config::dynamic::ConfigUpdate
source · pub struct ConfigUpdate {
pub log_filter: Option<String>,
pub panic_threshold: Option<f64>,
}
Fields§
§log_filter: Option<String>
Change the log filter
panic_threshold: Option<f64>
The maximum duration in seconds the system clock is allowed to change in a single jump before we conclude something is seriously wrong. This is used to limit the changes to the clock to reasonable ammounts, and stop issues with remote servers from causing us to drift too far.
Note that this is not used during startup. To limit system clock changes during startup, use startup_panic_threshold
Trait Implementations§
source§impl Args for ConfigUpdate
impl Args for ConfigUpdate
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentssource§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
source§impl Clone for ConfigUpdate
impl Clone for ConfigUpdate
source§fn clone(&self) -> ConfigUpdate
fn clone(&self) -> ConfigUpdate
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 ConfigUpdate
impl Debug for ConfigUpdate
source§impl<'de> Deserialize<'de> for ConfigUpdate
impl<'de> Deserialize<'de> for ConfigUpdate
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromArgMatches for ConfigUpdate
impl FromArgMatches for ConfigUpdate
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
.source§impl PartialEq<ConfigUpdate> for ConfigUpdate
impl PartialEq<ConfigUpdate> for ConfigUpdate
source§fn eq(&self, other: &ConfigUpdate) -> bool
fn eq(&self, other: &ConfigUpdate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.