pub enum MainWalRecordFrameRef<'a> {
Begin {
tx_id: u64,
},
Commit {
tx_id: u64,
},
Rollback {
tx_id: u64,
},
PageWrite {
tx_id: u64,
page_id: u32,
data: &'a [u8],
},
TxCommitBatch {
tx_id: u64,
actions: &'a [Vec<u8>],
},
FullPageImage {
tx_id: u64,
page_id: u32,
ckpt_epoch: u64,
data: &'a [u8],
},
VectorInsert {
collection: &'a str,
entity_id: u64,
vector: &'a [f32],
},
ProbabilisticDelta {
kind: u8,
operation: u8,
name: &'a str,
operands: &'a [Vec<u8>],
},
Checkpoint {
lsn: u64,
},
}Expand description
Borrowed view of a MainWalRecordFrame.
The append path encodes straight out of the runtime record, so the payload
of a PageWrite, FullPageImage or TxCommitBatch never has to be cloned
into an owned frame first. The encoder works exclusively on this view — the
owned frame encodes by borrowing itself — so both paths emit the same bytes
by construction, not by convention.
Variants§
Begin
Commit
Rollback
PageWrite
TxCommitBatch
FullPageImage
VectorInsert
ProbabilisticDelta
Checkpoint
Trait Implementations§
Source§impl<'a> Clone for MainWalRecordFrameRef<'a>
impl<'a> Clone for MainWalRecordFrameRef<'a>
Source§fn clone(&self) -> MainWalRecordFrameRef<'a>
fn clone(&self) -> MainWalRecordFrameRef<'a>
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<'a> Copy for MainWalRecordFrameRef<'a>
Source§impl<'a> Debug for MainWalRecordFrameRef<'a>
impl<'a> Debug for MainWalRecordFrameRef<'a>
Source§impl<'a> From<&'a MainWalRecordFrame> for MainWalRecordFrameRef<'a>
impl<'a> From<&'a MainWalRecordFrame> for MainWalRecordFrameRef<'a>
Source§fn from(frame: &'a MainWalRecordFrame) -> Self
fn from(frame: &'a MainWalRecordFrame) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for MainWalRecordFrameRef<'a>
impl<'a> PartialEq for MainWalRecordFrameRef<'a>
impl<'a> StructuralPartialEq for MainWalRecordFrameRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for MainWalRecordFrameRef<'a>
impl<'a> RefUnwindSafe for MainWalRecordFrameRef<'a>
impl<'a> Send for MainWalRecordFrameRef<'a>
impl<'a> Sync for MainWalRecordFrameRef<'a>
impl<'a> Unpin for MainWalRecordFrameRef<'a>
impl<'a> UnsafeUnpin for MainWalRecordFrameRef<'a>
impl<'a> UnwindSafe for MainWalRecordFrameRef<'a>
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