pub struct RecoverySnapshot { /* private fields */ }Expand description
One adapter-owned recovery snapshot gathered with repository server time.
The snapshot contains only the closed evidence fields accepted by the M4 contract. It has no parameter, context, checkpoint payload, item, error text, credential, endpoint, or SQL value.
Implementations§
Source§impl RecoverySnapshot
impl RecoverySnapshot
Sourcepub const fn new(
execution_id: JobExecutionId,
status: BatchStatus,
attempt: u32,
version: ExecutionVersion,
owner: OwnerObservation,
updated_at: SystemTime,
server_time: SystemTime,
latest_step: Option<RecoveryStepEvidence>,
markers: RecoveryMarkers,
) -> RecoverySnapshot
pub const fn new( execution_id: JobExecutionId, status: BatchStatus, attempt: u32, version: ExecutionVersion, owner: OwnerObservation, updated_at: SystemTime, server_time: SystemTime, latest_step: Option<RecoveryStepEvidence>, markers: RecoveryMarkers, ) -> RecoverySnapshot
Constructs one adapter-owned, value-redacted snapshot.
Sourcepub const fn status(&self) -> BatchStatus
pub const fn status(&self) -> BatchStatus
Returns the observed lifecycle status.
Sourcepub const fn owner(&self) -> OwnerObservation
pub const fn owner(&self) -> OwnerObservation
Returns the owner-token observation.
Sourcepub const fn updated_at(&self) -> SystemTime
pub const fn updated_at(&self) -> SystemTime
Returns the durable timestamp whose age establishes staleness.
Sourcepub const fn server_time(&self) -> SystemTime
pub const fn server_time(&self) -> SystemTime
Returns the repository server time this snapshot was gathered with.
Trait Implementations§
Source§impl Clone for RecoverySnapshot
impl Clone for RecoverySnapshot
Source§fn clone(&self) -> RecoverySnapshot
fn clone(&self) -> RecoverySnapshot
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 RecoverySnapshot
impl Debug for RecoverySnapshot
impl Eq for RecoverySnapshot
Source§impl PartialEq for RecoverySnapshot
impl PartialEq for RecoverySnapshot
impl StructuralPartialEq for RecoverySnapshot
Auto Trait Implementations§
impl Freeze for RecoverySnapshot
impl RefUnwindSafe for RecoverySnapshot
impl Send for RecoverySnapshot
impl Sync for RecoverySnapshot
impl Unpin for RecoverySnapshot
impl UnsafeUnpin for RecoverySnapshot
impl UnwindSafe for RecoverySnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more