pub struct OpBatch {
pub id: u64,
pub entries: Vec<OpEntry>,
}Expand description
Group of operations recorded together.
Fields§
§id: u64Batch identifier.
entries: Vec<OpEntry>Operations in the batch.
Implementations§
Source§impl OpBatch
impl OpBatch
Sourcepub fn is_transaction_marker_only(&self) -> bool
pub fn is_transaction_marker_only(&self) -> bool
True iff every entry is a OpRecord::TransactionCommit marker — the
commit sentinel of an atomic transaction that staged only direct,
already-durable effects and so contributed no domain record of its own
(e.g. undo/redo, which navigate existing states and append no new
record). Such a batch carries nothing to undo, redo, or surface in
operation history; the undo/redo eligibility scans and the undo --list
view filter it out so a record-less transaction’s sentinel never
pollutes the user-facing log.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OpBatch
impl<'de> Deserialize<'de> for OpBatch
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 OpBatch
impl RefUnwindSafe for OpBatch
impl Send for OpBatch
impl Sync for OpBatch
impl Unpin for OpBatch
impl UnsafeUnpin for OpBatch
impl UnwindSafe for OpBatch
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