pub struct DatabaseHeader {
pub version: u32,
pub page_size: u32,
pub page_count: u32,
pub freelist_head: u32,
pub schema_version: u32,
pub checkpoint_lsn: u64,
pub checkpoint_in_progress: bool,
pub checkpoint_target_lsn: u64,
pub physical: PhysicalFileHeader,
}Expand description
Database file header information
Fields§
§version: u32Database version
page_size: u32Page size (always 4096)
page_count: u32Total number of pages
freelist_head: u32First freelist trunk page ID (0 = no free pages)
schema_version: u32Schema version (for migrations)
checkpoint_lsn: u64Last checkpoint LSN
checkpoint_in_progress: boolWhether a checkpoint is currently in progress (two-phase)
checkpoint_target_lsn: u64Target LSN for the in-progress checkpoint
physical: PhysicalFileHeaderPhysical layout header mirrored into page 0
Trait Implementations§
Source§impl Clone for DatabaseHeader
impl Clone for DatabaseHeader
Source§fn clone(&self) -> DatabaseHeader
fn clone(&self) -> DatabaseHeader
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 DatabaseHeader
impl Debug for DatabaseHeader
Auto Trait Implementations§
impl Freeze for DatabaseHeader
impl RefUnwindSafe for DatabaseHeader
impl Send for DatabaseHeader
impl Sync for DatabaseHeader
impl Unpin for DatabaseHeader
impl UnsafeUnpin for DatabaseHeader
impl UnwindSafe for DatabaseHeader
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request