pub struct Header {
pub flags: HeaderFlags,
pub page_size: PageSize,
pub commit: PageNum,
pub min_txid: TXID,
pub max_txid: TXID,
pub timestamp: SystemTime,
pub pre_apply_checksum: Option<Checksum>,
}Expand description
An LTX file header.
Fields§
§flags: HeaderFlagsFlags changing the behavior of LTX encoder/decoder.
page_size: PageSizeThe size of the database pages encoded in the file.
commit: PageNumThe size of the database in pages.
min_txid: TXIDMinimum transaction ID in the file.
max_txid: TXIDMaximum transaction ID in the file. May be equal to min_txid if the file
contains only one transaction.
timestamp: SystemTimeThe time when the LTX file was created.
pre_apply_checksum: Option<Checksum>Running database checksum before this LTX file is applied. None if the LTX
file contains the full snapshot of a database.
Trait Implementations§
impl Eq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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