pub struct WalRecord {
pub record_type: RecordType,
pub payload: RecordPayload,
}Expand description
A WAL record
Fields§
§record_type: RecordType§payload: RecordPayloadImplementations§
Source§impl WalRecord
impl WalRecord
Sourcepub fn new(record_type: RecordType, key: Vec<u8>, value: Vec<u8>) -> Self
pub fn new(record_type: RecordType, key: Vec<u8>, value: Vec<u8>) -> Self
Create a new WAL record This is a convenience method for tests and simple usage
Sourcepub fn checkpoint(sequence: u64) -> Self
pub fn checkpoint(sequence: u64) -> Self
Create a CHECKPOINT record
Trait Implementations§
impl Eq for WalRecord
impl StructuralPartialEq for WalRecord
Auto Trait Implementations§
impl Freeze for WalRecord
impl RefUnwindSafe for WalRecord
impl Send for WalRecord
impl Sync for WalRecord
impl Unpin for WalRecord
impl UnwindSafe for WalRecord
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