#[repr(C)]pub struct splinter_slot_snapshot {
pub hash: u64,
pub epoch: u64,
pub val_off: u32,
pub val_len: u32,
pub type_flag: u8,
pub user_flag: u8,
pub ctime: u64,
pub atime: u64,
pub bloom: u64,
pub key: [c_char; 64],
}Expand description
@structure splinter_slot_snapshot @brief A structure to hold a snapshot of a single slot
Fields§
§hash: u64@brief The FNV-1a hash of the key. 0 indicates an empty slot.
epoch: u64@brief Per-slot epoch, incremented on write to this slot. Used for polling.
val_off: u32@brief Offset into the VALUES region where the value data is stored.
val_len: u32@brief The actual length of the stored value data (atomic).
type_flag: u8@brief The slot type flags
user_flag: u8@brief The slot user flags
ctime: u64@brief Storage for creation time
atime: u64@brief Storage for access time
bloom: u64@brief Bloom bits
key: [c_char; 64]@brief The null-terminated key string.
Trait Implementations§
Source§impl Clone for splinter_slot_snapshot
impl Clone for splinter_slot_snapshot
Source§fn clone(&self) -> splinter_slot_snapshot
fn clone(&self) -> splinter_slot_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_slot_snapshot
Auto Trait Implementations§
impl Freeze for splinter_slot_snapshot
impl RefUnwindSafe for splinter_slot_snapshot
impl Send for splinter_slot_snapshot
impl Sync for splinter_slot_snapshot
impl Unpin for splinter_slot_snapshot
impl UnsafeUnpin for splinter_slot_snapshot
impl UnwindSafe for splinter_slot_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