pub struct ChunkFaultProgress { /* private fields */ }Expand description
The fault-tolerance progress one chunk commit makes authoritative.
The values are deltas contributed by a single chunk attempt. A durable adapter adds them to the committed totals it read when the transaction began, so replaying an uncommitted chunk after a crash cannot double-count.
Implementations§
Source§impl ChunkFaultProgress
impl ChunkFaultProgress
Sourcepub const fn new(skips: SkipCounts, no_rollbacks: u64) -> Self
pub const fn new(skips: SkipCounts, no_rollbacks: u64) -> Self
Constructs the delta contributed by one chunk attempt.
Sourcepub const fn skips(self) -> SkipCounts
pub const fn skips(self) -> SkipCounts
Returns the per-phase skips this chunk accepted.
Sourcepub const fn no_rollbacks(self) -> u64
pub const fn no_rollbacks(self) -> u64
Returns the accepted commit-safe skips this chunk committed.
Trait Implementations§
Source§impl Clone for ChunkFaultProgress
impl Clone for ChunkFaultProgress
Source§fn clone(&self) -> ChunkFaultProgress
fn clone(&self) -> ChunkFaultProgress
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 ChunkFaultProgress
Source§impl Debug for ChunkFaultProgress
impl Debug for ChunkFaultProgress
Source§impl Default for ChunkFaultProgress
impl Default for ChunkFaultProgress
Source§fn default() -> ChunkFaultProgress
fn default() -> ChunkFaultProgress
Returns the “default value” for a type. Read more
impl Eq for ChunkFaultProgress
Source§impl Hash for ChunkFaultProgress
impl Hash for ChunkFaultProgress
Source§impl PartialEq for ChunkFaultProgress
impl PartialEq for ChunkFaultProgress
impl StructuralPartialEq for ChunkFaultProgress
Auto Trait Implementations§
impl Freeze for ChunkFaultProgress
impl RefUnwindSafe for ChunkFaultProgress
impl Send for ChunkFaultProgress
impl Sync for ChunkFaultProgress
impl Unpin for ChunkFaultProgress
impl UnsafeUnpin for ChunkFaultProgress
impl UnwindSafe for ChunkFaultProgress
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