pub struct RealtimeClockInstallerBuilder { /* private fields */ }Expand description
Builder for RealtimeClockInstaller.
Implementations§
Source§impl RealtimeClockInstallerBuilder
impl RealtimeClockInstallerBuilder
Sourcepub fn threshold(self, threshold: Duration) -> Self
pub fn threshold(self, threshold: Duration) -> Self
Target accuracy threshold. Clamped to platform minimum.
Sourcepub fn max_retries(self, n: u32) -> Self
pub fn max_retries(self, n: u32) -> Self
Maximum calibration attempts. Default: 20.
Sourcepub fn resync_interval(self, interval: Duration) -> Self
pub fn resync_interval(self, interval: Duration) -> Self
Resync interval. Default: 1 hour.
Sourcepub fn build(self) -> Result<RealtimeClockInstaller, ConfigError>
pub fn build(self) -> Result<RealtimeClockInstaller, ConfigError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RealtimeClockInstallerBuilder
impl RefUnwindSafe for RealtimeClockInstallerBuilder
impl Send for RealtimeClockInstallerBuilder
impl Sync for RealtimeClockInstallerBuilder
impl Unpin for RealtimeClockInstallerBuilder
impl UnsafeUnpin for RealtimeClockInstallerBuilder
impl UnwindSafe for RealtimeClockInstallerBuilder
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