pub struct NormalizedBatch {
pub epoch: u64,
pub seq: u64,
pub cv: u64,
pub normalized_fp: u64,
pub ops: Vec<NormalizedOp>,
}Expand description
One committed transaction’s normalized ops (or the seq-0 hydrate snapshot). Ops apply
in order into one client Db.write() transaction.
Fields§
§epoch: u64§seq: u64§cv: u64The global commit version this frame’s data reflects (OPTIMISTIC-WRITES-DESIGN.md
§8.3/§8.6) — the replica’s TxId for the commit (the hydrate watermark for the
seq-0 snapshot). Data frames ship eagerly per query; an optimistic client buffers
them by cv and applies all cv ≤ cv_min as one coherent transaction (§8.5).
Non-optimistic consumers may ignore it.
normalized_fp: u64§ops: Vec<NormalizedOp>Trait Implementations§
Source§impl Clone for NormalizedBatch
impl Clone for NormalizedBatch
Source§fn clone(&self) -> NormalizedBatch
fn clone(&self) -> NormalizedBatch
Returns a duplicate of the value. Read more
1.0.0 · 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 NormalizedBatch
impl Debug for NormalizedBatch
Source§impl<'de> Deserialize<'de> for NormalizedBatch
impl<'de> Deserialize<'de> for NormalizedBatch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NormalizedBatch
impl RefUnwindSafe for NormalizedBatch
impl Send for NormalizedBatch
impl Sync for NormalizedBatch
impl Unpin for NormalizedBatch
impl UnsafeUnpin for NormalizedBatch
impl UnwindSafe for NormalizedBatch
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