#[repr(u8)]pub enum RecordKind {
CreateEntity = 0,
CreateRelation = 1,
AddObservations = 2,
DeleteEntity = 3,
DeleteObservations = 4,
DeleteRelation = 5,
TxnBegin = 6,
TxnCommit = 7,
}Variants§
CreateEntity = 0
CreateRelation = 1
AddObservations = 2
DeleteEntity = 3
DeleteObservations = 4
DeleteRelation = 5
TxnBegin = 6
Opens a transaction: records that follow are buffered on replay and only
applied once a matching RecordKind::TxnCommit is seen. An unclosed
transaction (no commit before EOF) is discarded — this is how
multi-record operations like merge_entities stay crash-atomic.
TxnCommit = 7
Closes a transaction opened by RecordKind::TxnBegin.
Implementations§
Source§impl RecordKind
impl RecordKind
pub const fn from_u8(v: u8) -> Option<RecordKind>
Trait Implementations§
Source§impl Clone for RecordKind
impl Clone for RecordKind
Source§fn clone(&self) -> RecordKind
fn clone(&self) -> RecordKind
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 RecordKind
Source§impl Debug for RecordKind
impl Debug for RecordKind
impl Eq for RecordKind
Source§impl PartialEq for RecordKind
impl PartialEq for RecordKind
Source§fn eq(&self, other: &RecordKind) -> bool
fn eq(&self, other: &RecordKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RecordKind
Auto Trait Implementations§
impl Freeze for RecordKind
impl RefUnwindSafe for RecordKind
impl Send for RecordKind
impl Sync for RecordKind
impl Unpin for RecordKind
impl UnsafeUnpin for RecordKind
impl UnwindSafe for RecordKind
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