#[repr(C)]pub struct splinter_header_snapshot {
pub magic: u32,
pub version: u32,
pub slots: u32,
pub max_val_sz: u32,
pub epoch: u64,
pub core_flags: u8,
pub user_flags: u8,
pub parse_failures: u64,
pub last_failure_epoch: u64,
}Expand description
@struct splinter_header_snapshot @brief structure to hold splinter bus snapshots
Fields§
§magic: u32@brief Magic number (SPLINTER_MAGIC) to verify integrity.
version: u32@brief Data layout version (SPLINTER_VER).
slots: u32@brief Total number of available key-value slots.
max_val_sz: u32@brief Maximum size for any single value.
epoch: u64@brief Global epoch, incremented on any write. Used for change detection.
core_flags: u8@Brief holds the slot type flags
user_flags: u8@Brief holds the slot user flags
parse_failures: u64§last_failure_epoch: u64Trait Implementations§
Source§impl Clone for splinter_header_snapshot
impl Clone for splinter_header_snapshot
Source§fn clone(&self) -> splinter_header_snapshot
fn clone(&self) -> splinter_header_snapshot
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 moreimpl Copy for splinter_header_snapshot
Auto Trait Implementations§
impl Freeze for splinter_header_snapshot
impl RefUnwindSafe for splinter_header_snapshot
impl Send for splinter_header_snapshot
impl Sync for splinter_header_snapshot
impl Unpin for splinter_header_snapshot
impl UnsafeUnpin for splinter_header_snapshot
impl UnwindSafe for splinter_header_snapshot
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