pub struct TimerInventorySnapshot { /* private fields */ }Expand description
Atomic provider-neutral snapshot of one complete canister-local inventory.
The epoch remains observable even when no timer is declared. Timer order is
deterministic by TimerIdentity, every contained timer belongs to the
returned epoch, and the bounded registry is the only constructor.
Implementations§
Source§impl TimerInventorySnapshot
impl TimerInventorySnapshot
Sourcepub const fn epoch(&self) -> TimerEpoch
pub const fn epoch(&self) -> TimerEpoch
Return the volatile runtime epoch shared by the complete inventory.
Sourcepub fn timers(&self) -> &[TimerSnapshot]
pub fn timers(&self) -> &[TimerSnapshot]
Return all timer snapshots in deterministic identity order.
Sourcepub fn into_timers(self) -> Vec<TimerSnapshot>
pub fn into_timers(self) -> Vec<TimerSnapshot>
Consume the inventory and return its ordered timer snapshots.
Trait Implementations§
Source§impl Clone for TimerInventorySnapshot
impl Clone for TimerInventorySnapshot
Source§fn clone(&self) -> TimerInventorySnapshot
fn clone(&self) -> TimerInventorySnapshot
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 moreSource§impl Debug for TimerInventorySnapshot
impl Debug for TimerInventorySnapshot
impl Eq for TimerInventorySnapshot
Source§impl PartialEq for TimerInventorySnapshot
impl PartialEq for TimerInventorySnapshot
impl StructuralPartialEq for TimerInventorySnapshot
Auto Trait Implementations§
impl Freeze for TimerInventorySnapshot
impl RefUnwindSafe for TimerInventorySnapshot
impl Send for TimerInventorySnapshot
impl Sync for TimerInventorySnapshot
impl Unpin for TimerInventorySnapshot
impl UnsafeUnpin for TimerInventorySnapshot
impl UnwindSafe for TimerInventorySnapshot
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