pub struct CycleTime { /* private fields */ }Expand description
Represents a moment in time with both monotonic and wall clock components.
This structure captures a specific point in time using:
instant: Monotonic time for measuring durations and intervalssystem_time: Wall clock time for timestamps and human-readable times
Implementations§
Source§impl CycleTime
impl CycleTime
Sourcepub fn new(instant: Instant, system_time: OffsetDateTime) -> Self
pub fn new(instant: Instant, system_time: OffsetDateTime) -> Self
Create a new TriggerTime with the given instant and system time
pub const fn now(&self) -> Instant
pub const fn unix_timestamp(&self) -> OffsetDateTime
pub const fn unix_timestamp_nanos(&self) -> i128
Trait Implementations§
Source§impl Ord for CycleTime
impl Ord for CycleTime
Source§impl PartialOrd for CycleTime
impl PartialOrd for CycleTime
impl Eq for CycleTime
impl StructuralPartialEq for CycleTime
Auto Trait Implementations§
impl Freeze for CycleTime
impl RefUnwindSafe for CycleTime
impl Send for CycleTime
impl Sync for CycleTime
impl Unpin for CycleTime
impl UnwindSafe for CycleTime
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.