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: HeaderFlags
Flags changing the behavior of LTX encoder/decoder.
page_size: PageSize
The size of the database pages encoded in the file.
commit: PageNum
The size of the database in pages.
min_txid: TXID
Minimum transaction ID in the file.
max_txid: TXID
Maximum transaction ID in the file. May be equal to min_txid
if the file
contains only one transaction.
timestamp: SystemTime
The 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§
source§impl PartialEq<Header> for Header
impl PartialEq<Header> for Header
impl Eq for Header
impl StructuralEq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
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