pub struct BatchAppend {
pub head: RecordId,
pub results: Vec<(RecordId, VerdictData)>,
pub replayed: usize,
}Expand description
Outcome of LogWriter::checked_batch_commit.
Fields§
§head: RecordIdThe head after this batch - identical on the original append and on every retry of the same batch.
results: Vec<(RecordId, VerdictData)>(subject id, verdict) per proposal, in deterministic batch order; replayed entries are read back from the log, not recomputed.
replayed: usizeHow many of the batch’s proposals had already landed and were not
appended again (== proposals.len() for a full no-op).
Trait Implementations§
Source§impl Clone for BatchAppend
impl Clone for BatchAppend
Source§fn clone(&self) -> BatchAppend
fn clone(&self) -> BatchAppend
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 BatchAppend
impl Debug for BatchAppend
impl Eq for BatchAppend
Source§impl PartialEq for BatchAppend
impl PartialEq for BatchAppend
impl StructuralPartialEq for BatchAppend
Auto Trait Implementations§
impl Freeze for BatchAppend
impl RefUnwindSafe for BatchAppend
impl Send for BatchAppend
impl Sync for BatchAppend
impl Unpin for BatchAppend
impl UnsafeUnpin for BatchAppend
impl UnwindSafe for BatchAppend
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