pub struct Config {Show 22 fields
pub back_off_time_between_pull_samples_sec: i64,
pub disable_delays: bool,
pub early_exit: bool,
pub first_sampling_delay_sec: i64,
pub has_always_on_counter: bool,
pub has_real_time_clock: bool,
pub initial_frequency_ppm: u32,
pub max_frequency_error_ppm: u32,
pub monitor_time_source_url: String,
pub monitor_uses_pull: bool,
pub oscillator_error_std_dev_ppm: u32,
pub power_topology_integration_enabled: bool,
pub primary_time_source_url: String,
pub primary_uses_pull: bool,
pub serve_fuchsia_time_alarms: bool,
pub serve_fuchsia_time_external_adjust: bool,
pub serve_test_protocols: bool,
pub use_connectivity: bool,
pub utc_max_allowed_delta_future_sec: i64,
pub utc_max_allowed_delta_past_sec: i64,
pub utc_start_at_startup: bool,
pub utc_start_at_startup_when_invalid_rtc: bool,
}Fields§
§back_off_time_between_pull_samples_sec: i64§disable_delays: bool§early_exit: bool§first_sampling_delay_sec: i64§has_always_on_counter: bool§has_real_time_clock: bool§initial_frequency_ppm: u32§max_frequency_error_ppm: u32§monitor_time_source_url: String§monitor_uses_pull: bool§oscillator_error_std_dev_ppm: u32§power_topology_integration_enabled: bool§primary_time_source_url: String§primary_uses_pull: bool§serve_fuchsia_time_alarms: bool§serve_fuchsia_time_external_adjust: bool§serve_test_protocols: bool§use_connectivity: bool§utc_max_allowed_delta_future_sec: i64§utc_max_allowed_delta_past_sec: i64§utc_start_at_startup: bool§utc_start_at_startup_when_invalid_rtc: boolImplementations§
Source§impl Config
impl Config
Sourcepub fn take_from_startup_handle() -> Self
pub fn take_from_startup_handle() -> Self
Take the config startup handle and parse its contents.
§Panics
If the config startup handle was already taken or if it is not valid.
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, Error>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, Error>
Parse Self from bytes.
pub fn record_inspect(&self, inspector_node: &Node)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more