pub struct TimerEpoch { /* private fields */ }Expand description
Identity and start time of one runtime-local observation epoch.
Implementations§
Source§impl TimerEpoch
impl TimerEpoch
Sourcepub const fn canister_version(self) -> u64
pub const fn canister_version(self) -> u64
Return the IC canister version that owns this volatile epoch.
Sourcepub const fn started_at_ns(self) -> u64
pub const fn started_at_ns(self) -> u64
Return the IC timestamp at which the epoch began.
Trait Implementations§
Source§impl Clone for TimerEpoch
impl Clone for TimerEpoch
Source§fn clone(&self) -> TimerEpoch
fn clone(&self) -> TimerEpoch
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 TimerEpoch
Source§impl Debug for TimerEpoch
impl Debug for TimerEpoch
impl Eq for TimerEpoch
Source§impl Hash for TimerEpoch
impl Hash for TimerEpoch
Source§impl Ord for TimerEpoch
impl Ord for TimerEpoch
Source§fn cmp(&self, other: &TimerEpoch) -> Ordering
fn cmp(&self, other: &TimerEpoch) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TimerEpoch
impl PartialEq for TimerEpoch
Source§impl PartialOrd for TimerEpoch
impl PartialOrd for TimerEpoch
impl StructuralPartialEq for TimerEpoch
Auto Trait Implementations§
impl Freeze for TimerEpoch
impl RefUnwindSafe for TimerEpoch
impl Send for TimerEpoch
impl Sync for TimerEpoch
impl Unpin for TimerEpoch
impl UnsafeUnpin for TimerEpoch
impl UnwindSafe for TimerEpoch
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