pub struct CellDeltaDescriptor {
pub page_number: PageNumber,
pub cell_key_digest: [u8; 16],
pub op: CellOp,
pub cell_data: Vec<u8>,
}Expand description
Descriptor for a single cell delta to be converted to a WAL frame.
Fields§
§page_number: PageNumberPage containing this cell.
cell_key_digest: [u8; 16]BLAKE3-truncated digest of the cell key (16 bytes).
op: CellOpOperation type.
cell_data: Vec<u8>Cell data (empty for Delete).
Implementations§
Source§impl CellDeltaDescriptor
impl CellDeltaDescriptor
Sourcepub fn new(
page_number: PageNumber,
cell_key_digest: [u8; 16],
op: CellOp,
cell_data: Vec<u8>,
) -> Self
pub fn new( page_number: PageNumber, cell_key_digest: [u8; 16], op: CellOp, cell_data: Vec<u8>, ) -> Self
Create a new cell delta descriptor.
Sourcepub fn insert(
page_number: PageNumber,
cell_key_digest: [u8; 16],
cell_data: Vec<u8>,
) -> Self
pub fn insert( page_number: PageNumber, cell_key_digest: [u8; 16], cell_data: Vec<u8>, ) -> Self
Create an INSERT descriptor.
Sourcepub fn update(
page_number: PageNumber,
cell_key_digest: [u8; 16],
cell_data: Vec<u8>,
) -> Self
pub fn update( page_number: PageNumber, cell_key_digest: [u8; 16], cell_data: Vec<u8>, ) -> Self
Create an UPDATE descriptor.
Sourcepub fn delete(page_number: PageNumber, cell_key_digest: [u8; 16]) -> Self
pub fn delete(page_number: PageNumber, cell_key_digest: [u8; 16]) -> Self
Create a DELETE descriptor.
Trait Implementations§
Source§impl Clone for CellDeltaDescriptor
impl Clone for CellDeltaDescriptor
Source§fn clone(&self) -> CellDeltaDescriptor
fn clone(&self) -> CellDeltaDescriptor
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 moreAuto Trait Implementations§
impl Freeze for CellDeltaDescriptor
impl RefUnwindSafe for CellDeltaDescriptor
impl Send for CellDeltaDescriptor
impl Sync for CellDeltaDescriptor
impl Unpin for CellDeltaDescriptor
impl UnsafeUnpin for CellDeltaDescriptor
impl UnwindSafe for CellDeltaDescriptor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more