pub struct TimerSnapshot {
pub identity: TimerIdentity,
pub scheduling: TimerSchedulingSnapshot,
pub state: TimerStateSnapshot,
pub observability: TimerObservabilitySnapshot,
}Expand description
Canonical provider-neutral operator snapshot for one logical timer.
Fields§
§identity: TimerIdentityStable structured identity used for lookup and deterministic inventory ordering.
scheduling: TimerSchedulingSnapshotConfigured policy and authoritative scheduling details.
state: TimerStateSnapshotCurrent logical and operator-facing state.
observability: TimerObservabilitySnapshotEpoch-scoped outcomes, counters, measurements, and functional failure streak.
Implementations§
Source§impl TimerSnapshot
impl TimerSnapshot
Sourcepub fn new(
identity: TimerIdentity,
policy: TimerPolicy,
epoch: TimerEpoch,
) -> Self
pub fn new( identity: TimerIdentity, policy: TimerPolicy, epoch: TimerEpoch, ) -> Self
Construct an unregistered timer snapshot for one observation epoch.
Sourcepub const fn consecutive_expected_failures(&self) -> u64
pub const fn consecutive_expected_failures(&self) -> u64
Return recovery-sensitive expected-failure state for this timer.
A registry can expose this after one ordered lookup by identity;
callers do not need to scan counters or rebuild an adapter snapshot.
Trait Implementations§
Source§impl Clone for TimerSnapshot
impl Clone for TimerSnapshot
Source§fn clone(&self) -> TimerSnapshot
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimerSnapshot
impl Debug for TimerSnapshot
impl Eq for TimerSnapshot
Source§impl PartialEq for TimerSnapshot
impl PartialEq for TimerSnapshot
impl StructuralPartialEq for TimerSnapshot
Auto Trait Implementations§
impl Freeze for TimerSnapshot
impl RefUnwindSafe for TimerSnapshot
impl Send for TimerSnapshot
impl Sync for TimerSnapshot
impl Unpin for TimerSnapshot
impl UnsafeUnpin for TimerSnapshot
impl UnwindSafe for TimerSnapshot
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