pub struct BatchResult {
pub committed: Vec<(u64, u64, u64)>,
pub conflicted: Vec<(u64, String)>,
pub fsync_count: u32,
pub phase_order: Vec<BatchPhase>,
}Expand description
Result of processing a single batch through the coordinator.
Fields§
§committed: Vec<(u64, u64, u64)>Successfully committed entries: (txn_id, wal_offset, commit_seq).
conflicted: Vec<(u64, String)>Rejected entries: (txn_id, reason).
fsync_count: u32Number of fsync calls issued for this batch (should always be 0 or 1).
phase_order: Vec<BatchPhase>Ordered record of phases executed during batch processing.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BatchResult
impl RefUnwindSafe for BatchResult
impl Send for BatchResult
impl Sync for BatchResult
impl Unpin for BatchResult
impl UnsafeUnpin for BatchResult
impl UnwindSafe for BatchResult
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> 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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).