pub trait HostClock {
// Required method
fn get_host_epoch_nanoseconds(&self) -> TemporalResult<EpochNanoseconds>;
}Expand description
The HostClock trait defines an accessor to the host’s clock.
Required Methods§
fn get_host_epoch_nanoseconds(&self) -> TemporalResult<EpochNanoseconds>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl HostClock for EmptyHostSystem
impl HostClock for LocalHostSystem
Available on crate feature
sys-local only.impl HostClock for UtcHostSystem
Available on crate feature
sys only.