pub struct TimerSnapshot { /* private fields */ }Expand description
Canonical provider-neutral operator snapshot for one logical timer.
Implementations§
Source§impl TimerSnapshot
impl TimerSnapshot
Sourcepub const fn identity(&self) -> &TimerIdentity
pub const fn identity(&self) -> &TimerIdentity
Return the stable structured identity.
Sourcepub const fn policy(&self) -> TimerPolicy
pub const fn policy(&self) -> TimerPolicy
Return the configured scheduling policy.
Sourcepub const fn lifetime(&self) -> DeclarationLifetime
pub const fn lifetime(&self) -> DeclarationLifetime
Return whether the declaration remains after terminal stop.
Sourcepub const fn state(&self) -> TimerRuntimeStateSnapshot
pub const fn state(&self) -> TimerRuntimeStateSnapshot
Return the closed policy-specific runtime state.
Sourcepub const fn scheduling_mode(&self) -> TimerSchedulingMode
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.
Sourcepub const fn latest_directive(&self) -> Option<TimerDirectiveSnapshot>
pub const fn latest_directive(&self) -> Option<TimerDirectiveSnapshot>
Return the latest completed ordinary directive.
Sourcepub const fn latest_requested_delay_ns(&self) -> Option<u64>
pub const fn latest_requested_delay_ns(&self) -> Option<u64>
Return the latest requested relative delay.
Sourcepub const fn latest_armed_delay_ns(&self) -> Option<u64>
pub const fn latest_armed_delay_ns(&self) -> Option<u64>
Return the latest relative delay whose provider arm committed.
Sourcepub const fn next_deadline_ns(&self) -> Option<u64>
pub const fn next_deadline_ns(&self) -> Option<u64>
Return the next authoritative absolute deadline.
Sourcepub fn registration_status(&self) -> TimerRegistrationStatus
pub fn registration_status(&self) -> TimerRegistrationStatus
Return a portable registration projection.
Sourcepub const fn process_condition(&self) -> TimerProcessCondition
pub const fn process_condition(&self) -> TimerProcessCondition
Return an operator-facing condition derived from coherent state.
Sourcepub const fn generation(&self) -> Option<u64>
pub const fn generation(&self) -> Option<u64>
Return the latest authoritative callback generation.
Sourcepub const fn observability(&self) -> TimerObservabilitySnapshot
pub const fn observability(&self) -> TimerObservabilitySnapshot
Return epoch-scoped outcomes, counters, and measurements.
Trait Implementations§
Source§impl Clone for TimerSnapshot
impl Clone for TimerSnapshot
Source§fn clone(&self) -> TimerSnapshot
fn clone(&self) -> TimerSnapshot
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more