#[non_exhaustive]pub struct HeaderFields {
pub format_version: u32,
pub format_revision: u32,
pub page_size: u32,
pub file_type: u32,
pub previous_full_backup_log_gen: u32,
pub previous_incremental_backup_log_gen: u32,
pub current_full_backup_log_gen: u32,
}Expand description
Result of parsing the 668-byte header without holding onto the file. Callers use this when they want to display + validate header metadata without keeping an open handle.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.format_version: u32§format_revision: u32§page_size: u32§file_type: u32§previous_full_backup_log_gen: u32§previous_incremental_backup_log_gen: u32§current_full_backup_log_gen: u32Trait Implementations§
Source§impl Clone for HeaderFields
impl Clone for HeaderFields
impl Copy for HeaderFields
Auto Trait Implementations§
impl Freeze for HeaderFields
impl RefUnwindSafe for HeaderFields
impl Send for HeaderFields
impl Sync for HeaderFields
impl Unpin for HeaderFields
impl UnsafeUnpin for HeaderFields
impl UnwindSafe for HeaderFields
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