Skip to main content

TimerSnapshot

Struct TimerSnapshot 

Source
pub struct TimerSnapshot { /* private fields */ }
Expand description

Canonical provider-neutral operator snapshot for one logical timer.

Implementations§

Source§

impl TimerSnapshot

Source

pub const fn identity(&self) -> &TimerIdentity

Return the stable structured identity.

Source

pub const fn registration_id(&self) -> TimerRegistrationId

Return the inert identity of this registration’s counter lifetime.

Cancellation, rescheduling and completion preserve it. Unregistering and registering again changes it, even within the same runtime epoch. Compare only snapshots from the same canister. This value grants no timer-control authority and cannot be used to reconstruct a registration.

Source

pub const fn policy(&self) -> TimerPolicy

Return the configured scheduling policy.

Source

pub const fn lifetime(&self) -> DeclarationLifetime

Return whether the declaration remains after terminal stop.

Source

pub const fn state(&self) -> TimerRuntimeStateSnapshot

Return the closed policy-specific runtime state.

Source

pub const fn scheduling_mode(&self) -> TimerSchedulingMode

Return the effective scheduling mode.

A new declaration starts with its configured policy mode. Later requests and completed directives update this value, including after the declaration becomes inactive.

Source

pub const fn latest_directive(&self) -> Option<TimerDirectiveSnapshot>

Return the latest completed ordinary directive.

Source

pub const fn latest_requested_delay_ns(&self) -> Option<u64>

Return the latest requested relative delay.

Source

pub const fn latest_armed_delay_ns(&self) -> Option<u64>

Return the latest relative delay whose provider arm committed.

Source

pub const fn next_deadline_ns(&self) -> Option<u64>

Return the next authoritative absolute deadline.

Source

pub fn registration_status(&self) -> TimerRegistrationStatus

Return a portable registration projection.

Source

pub const fn process_condition(&self) -> TimerProcessCondition

Return an operator-facing condition derived from coherent state.

Source

pub const fn generation(&self) -> Option<u64>

Return the latest authoritative callback generation.

Scheduling changes this value. Use Self::registration_id to check counter continuity across observations.

Source

pub const fn observability(&self) -> TimerObservabilitySnapshot

Return registration-scoped outcomes, counters, and measurements.

Trait Implementations§

Source§

impl Clone for TimerSnapshot

Source§

fn clone(&self) -> TimerSnapshot

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TimerSnapshot

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for TimerSnapshot

Source§

impl PartialEq for TimerSnapshot

Source§

fn eq(&self, other: &TimerSnapshot) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for TimerSnapshot

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.