pub struct RecoveryEvidence { /* private fields */ }Expand description
Canonical evidence retained by one recovery proposal.
Implementations§
Source§impl RecoveryEvidence
impl RecoveryEvidence
Sourcepub const fn new(
snapshot: RecoverySnapshot,
inactivity: Duration,
observed_clock_offset: Duration,
observation_window: Duration,
) -> Self
pub const fn new( snapshot: RecoverySnapshot, inactivity: Duration, observed_clock_offset: Duration, observation_window: Duration, ) -> Self
Binds one snapshot to the clock evidence gathered around it.
The three durations are the proposer’s own observations: the inactivity it measured against repository server time, the offset it observed between that server time and its local wall clock, and the monotonic window the snapshot read occupied.
Sourcepub const fn execution_id(&self) -> JobExecutionId
pub const fn execution_id(&self) -> JobExecutionId
Returns the execution identity.
Sourcepub const fn status(&self) -> BatchStatus
pub const fn status(&self) -> BatchStatus
Returns the observed lifecycle status.
Sourcepub const fn version(&self) -> ExecutionVersion
pub const fn version(&self) -> ExecutionVersion
Returns the observed optimistic version.
Sourcepub const fn owner(&self) -> OwnerObservation
pub const fn owner(&self) -> OwnerObservation
Returns the owner-token observation.
Sourcepub const fn inactivity(&self) -> Duration
pub const fn inactivity(&self) -> Duration
Returns the durable inactivity observed against repository server time.
Sourcepub const fn updated_at(&self) -> SystemTime
pub const fn updated_at(&self) -> SystemTime
Returns the durable timestamp whose age established staleness.
Sourcepub const fn server_time(&self) -> SystemTime
pub const fn server_time(&self) -> SystemTime
Returns the repository-server time bound into this observation.
Sourcepub const fn observed_clock_offset(&self) -> Duration
pub const fn observed_clock_offset(&self) -> Duration
Returns the absolute repository/local wall-clock offset.
Sourcepub const fn observation_window(&self) -> Duration
pub const fn observation_window(&self) -> Duration
Returns the monotonic window that bounded this observation.
Sourcepub const fn latest_step(&self) -> Option<&RecoveryStepEvidence>
pub const fn latest_step(&self) -> Option<&RecoveryStepEvidence>
Borrows the latest durable step evidence, when any step exists.
Sourcepub const fn unknown_commit(&self) -> bool
pub const fn unknown_commit(&self) -> bool
Returns whether the last durable marker is an unknown commit.
Sourcepub const fn completed_partition(&self) -> bool
pub const fn completed_partition(&self) -> bool
Returns whether completed partition evidence exists.
Sourcepub const fn committed_flow_decision(&self) -> bool
pub const fn committed_flow_decision(&self) -> bool
Returns whether a committed flow decision exists.
Sourcepub const fn ambiguous_external_effect(&self) -> bool
pub const fn ambiguous_external_effect(&self) -> bool
Returns whether the definition declares an ambiguous external effect.
Trait Implementations§
Source§impl Clone for RecoveryEvidence
impl Clone for RecoveryEvidence
Source§fn clone(&self) -> RecoveryEvidence
fn clone(&self) -> RecoveryEvidence
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more