pub struct MdbShardFooter {Show 17 fields
pub version: u64,
pub file_info_offset: u64,
pub cas_info_offset: u64,
pub file_lookup_offset: u64,
pub file_lookup_num_entry: u64,
pub cas_lookup_offset: u64,
pub cas_lookup_num_entry: u64,
pub chunk_lookup_offset: u64,
pub chunk_lookup_num_entry: u64,
pub chunk_hash_hmac_key: [u8; 32],
pub shard_creation_timestamp: u64,
pub shard_key_expiry: u64,
pub _buffer: [u64; 6],
pub stored_bytes_on_disk: u64,
pub materialized_bytes: u64,
pub stored_bytes: u64,
pub footer_offset: u64,
}Expand description
200-byte shard footer carrying the section offsets, lookup counts, HMAC
key, timestamps, and byte totals. Field order matches
MDBShardFileFooter::serialize exactly.
Fields§
§version: u64§file_info_offset: u64§cas_info_offset: u64§file_lookup_offset: u64§file_lookup_num_entry: u64§cas_lookup_offset: u64§cas_lookup_num_entry: u64§chunk_lookup_offset: u64§chunk_lookup_num_entry: u64§chunk_hash_hmac_key: [u8; 32]32-byte chunk-hash HMAC key (all-zero = no keying). cas-serve does not key its chunks, so this is always zero.
shard_creation_timestamp: u64§shard_key_expiry: u64§_buffer: [u64; 6]§stored_bytes_on_disk: u64§materialized_bytes: u64§stored_bytes: u64Trait Implementations§
Source§fn clone(&self) -> MdbShardFooter
fn clone(&self) -> MdbShardFooter
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§fn eq(&self, other: &MdbShardFooter) -> bool
fn eq(&self, other: &MdbShardFooter) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
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