pub enum RtcOptions {
None,
InitialRtcTime(SyntheticInstant),
InjectedRtc(DirectoryProxy),
}
Expand description
The RTC configuration options.
Variants§
None
No real-time clock available. This configuration simulates a system that does not have a RTC circuit available.
InitialRtcTime(SyntheticInstant)
Fake real-time clock. Supplied initial RTC time to report.
InjectedRtc(DirectoryProxy)
Injected real-time clock.
This is the handle that will appear as the directory
/dev/class/rtc
in the Timekeeper’s namespace.
The caller must set this directory up so that it serves
a RTC device (e.g. named /dev/class/rtc/000
, and serving
the FIDL fuchsia.hardware.rtc/Device
) from this directory.
It is also possible to serve more RTCs from the directory, or other files and file types at the caller’s option.
Use this option if you need to implement corner cases, or very specific RTC behavior, such as abnormal configuration or anomalous behavior.
Trait Implementations§
Source§impl From<Instant<SyntheticTimeline>> for RtcOptions
impl From<Instant<SyntheticTimeline>> for RtcOptions
Source§fn from(value: SyntheticInstant) -> Self
fn from(value: SyntheticInstant) -> Self
Converts to this type from the input type.
Source§impl From<Option<Instant<SyntheticTimeline>>> for RtcOptions
impl From<Option<Instant<SyntheticTimeline>>> for RtcOptions
Source§fn from(value: Option<SyntheticInstant>) -> Self
fn from(value: Option<SyntheticInstant>) -> Self
Converts to this type from the input type.
Source§impl From<RtcOptions> for RtcOptions
impl From<RtcOptions> for RtcOptions
Source§fn from(value: RtcOptions) -> Self
fn from(value: RtcOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RtcOptions
impl !RefUnwindSafe for RtcOptions
impl Send for RtcOptions
impl Sync for RtcOptions
impl Unpin for RtcOptions
impl !UnwindSafe for RtcOptions
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