Skip to main content

TimerSnapshot

Struct TimerSnapshot 

Source
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: TimerIdentity

Stable structured identity used for lookup and deterministic inventory ordering.

§scheduling: TimerSchedulingSnapshot

Configured policy and authoritative scheduling details.

§state: TimerStateSnapshot

Current logical and operator-facing state.

§observability: TimerObservabilitySnapshot

Epoch-scoped outcomes, counters, measurements, and functional failure streak.

Implementations§

Source§

impl TimerSnapshot

Source

pub fn new( identity: TimerIdentity, policy: TimerPolicy, epoch: TimerEpoch, ) -> Self

Construct an unregistered timer snapshot for one observation epoch.

Source

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

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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.