pub struct CommitRecord {
pub lsn: u64,
pub commit_ts: u64,
pub ops: Vec<RedoOp>,
}Fields§
§lsn: u64§commit_ts: u64§ops: Vec<RedoOp>Implementations§
Source§impl CommitRecord
The record’s serialized shape, spelled once beside the type whose field
names it mirrors. The WAL’s encode-once path (ADR-0558) writes the header
by hand around an already-serialized ops array; these are the
spellings it consults, and the test below pins them to what serde emits.
impl CommitRecord
The record’s serialized shape, spelled once beside the type whose field
names it mirrors. The WAL’s encode-once path (ADR-0558) writes the header
by hand around an already-serialized ops array; these are the
spellings it consults, and the test below pins them to what serde emits.
Sourcepub const COMMIT_TS_KEY: &'static str = ",\"commit_ts\":"
pub const COMMIT_TS_KEY: &'static str = ",\"commit_ts\":"
The separator and the commit_ts key.
Sourcepub const OPS_KEY: &'static str = ",\"ops\":"
pub const OPS_KEY: &'static str = ",\"ops\":"
The separator and the ops key; the array follows.
Sourcepub const U64_DECIMAL_MAX: usize = 20
pub const U64_DECIMAL_MAX: usize = 20
Decimal digits of u64::MAX: the widest lsn or commit_ts.
Sourcepub const HEADER_MAX: usize
pub const HEADER_MAX: usize
The widest header the record can carry: the three key spellings and two maximum-width unsigned decimals.
Trait Implementations§
Source§impl Clone for CommitRecord
impl Clone for CommitRecord
Source§impl Debug for CommitRecord
impl Debug for CommitRecord
Source§impl<'de> Deserialize<'de> for CommitRecord
impl<'de> Deserialize<'de> for CommitRecord
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 Forget for CommitRecord
impl Freeze for CommitRecord
impl Move for CommitRecord
impl RefUnwindSafe for CommitRecord
impl Send for CommitRecord
impl Sync for CommitRecord
impl Unpin for CommitRecord
impl UnsafeUnpin for CommitRecord
impl UnwindSafe for CommitRecord
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