pub struct MlogRecord {
pub block_offset: usize,
pub record_type: MlogRecordType,
pub single_rec: bool,
pub space_id: Option<u32>,
pub page_no: Option<u32>,
}Expand description
A single parsed MLOG record from a redo log data block.
Each record carries the type of redo operation and (for page-referencing
types) the space_id and page_no that the operation targets. These
two fields are encoded as InnoDB compressed integers immediately after
the type byte.
§Limitations
- Records that span block boundaries are not decoded — only intra-block records are returned.
- The exact record payload length is not determined (would require schema context), so records are identified by scanning for valid type bytes.
Fields§
§block_offset: usizeOffset within the block payload (bytes from block start).
record_type: MlogRecordTypeMLOG record type (single-rec flag stripped).
single_rec: boolWhether the single-record-group flag (bit 7 of type byte) was set.
space_id: Option<u32>Tablespace ID (InnoDB compressed integer), if this type carries a page reference.
page_no: Option<u32>Page number within the tablespace.
Trait Implementations§
Source§impl Clone for MlogRecord
impl Clone for MlogRecord
Source§fn clone(&self) -> MlogRecord
fn clone(&self) -> MlogRecord
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 moreSource§impl Debug for MlogRecord
impl Debug for MlogRecord
Auto Trait Implementations§
impl Freeze for MlogRecord
impl RefUnwindSafe for MlogRecord
impl Send for MlogRecord
impl Sync for MlogRecord
impl Unpin for MlogRecord
impl UnsafeUnpin for MlogRecord
impl UnwindSafe for MlogRecord
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> 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