pub struct InheritedStepProgress { /* private fields */ }Expand description
Committed step progress one chunk-step attempt inherits.
A restart resumes bounded policy limits and stable retry-key identity from the durable state its attempt inherited, so a retry budget is not refilled by restarting the process.
Implementations§
Source§impl InheritedStepProgress
impl InheritedStepProgress
Sourcepub const fn new(
read_ordinal: u64,
checkpoint_digest: [u8; 32],
fault: FaultProgress,
) -> Self
pub const fn new( read_ordinal: u64, checkpoint_digest: [u8; 32], fault: FaultProgress, ) -> Self
Constructs inherited progress from durable step state.
Sourcepub const fn read_ordinal(self) -> u64
pub const fn read_ordinal(self) -> u64
Returns the stable reader ordinal the next chunk continues from.
Sourcepub const fn checkpoint_digest(self) -> [u8; 32]
pub const fn checkpoint_digest(self) -> [u8; 32]
Returns the digest of the last committed checkpoint.
Retry keys are derived from this generation, so an inherited digest makes a reserved ordinal resumable after restart.
Sourcepub const fn fault(self) -> FaultProgress
pub const fn fault(self) -> FaultProgress
Returns the inherited committed fault-tolerance totals.
Trait Implementations§
Source§impl Clone for InheritedStepProgress
impl Clone for InheritedStepProgress
Source§fn clone(&self) -> InheritedStepProgress
fn clone(&self) -> InheritedStepProgress
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 moreimpl Copy for InheritedStepProgress
Source§impl Debug for InheritedStepProgress
impl Debug for InheritedStepProgress
Source§impl Default for InheritedStepProgress
impl Default for InheritedStepProgress
Source§fn default() -> InheritedStepProgress
fn default() -> InheritedStepProgress
Returns the “default value” for a type. Read more
impl Eq for InheritedStepProgress
Source§impl Hash for InheritedStepProgress
impl Hash for InheritedStepProgress
Source§impl PartialEq for InheritedStepProgress
impl PartialEq for InheritedStepProgress
impl StructuralPartialEq for InheritedStepProgress
Auto Trait Implementations§
impl Freeze for InheritedStepProgress
impl RefUnwindSafe for InheritedStepProgress
impl Send for InheritedStepProgress
impl Sync for InheritedStepProgress
impl Unpin for InheritedStepProgress
impl UnsafeUnpin for InheritedStepProgress
impl UnwindSafe for InheritedStepProgress
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