pub struct InherentlyCalibrated;Expand description
Calibration type for clocks whose native duration is already in nanoseconds.
Used with std_clocks::InstantClock and std_clocks::SystemClock.
Trait Implementations§
Source§impl Clone for InherentlyCalibrated
impl Clone for InherentlyCalibrated
Source§fn clone(&self) -> InherentlyCalibrated
fn clone(&self) -> InherentlyCalibrated
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InherentlyCalibrated
Source§impl Debug for InherentlyCalibrated
impl Debug for InherentlyCalibrated
Source§impl DurationCalibration<Duration> for InherentlyCalibrated
impl DurationCalibration<Duration> for InherentlyCalibrated
Source§fn convert_to_ns(&self, d: Duration) -> u64
fn convert_to_ns(&self, d: Duration) -> u64
Converts a duration to nanoseconds, rounding to the nearest nanosecond.
Source§fn convert_from_ns(&self, ns: u64) -> Duration
fn convert_from_ns(&self, ns: u64) -> Duration
Converts a nanosecond value to this clock’s native duration type.
fn to_std(&self, d: D) -> Durationwhere
Self: Sized,
fn convert_from_std(&self, d: Duration) -> Dwhere
Self: Sized,
Auto Trait Implementations§
impl Freeze for InherentlyCalibrated
impl RefUnwindSafe for InherentlyCalibrated
impl Send for InherentlyCalibrated
impl Sync for InherentlyCalibrated
impl Unpin for InherentlyCalibrated
impl UnsafeUnpin for InherentlyCalibrated
impl UnwindSafe for InherentlyCalibrated
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