Struct solana_runtime::tiered_storage::footer::TieredStorageFooter
source · #[repr(C)]pub struct TieredStorageFooter {Show 16 fields
pub account_meta_format: AccountMetaFormat,
pub owners_block_format: OwnersBlockFormat,
pub account_index_format: AccountIndexFormat,
pub account_block_format: AccountBlockFormat,
pub account_entry_count: u32,
pub account_meta_entry_size: u32,
pub account_block_size: u64,
pub owner_count: u32,
pub owner_entry_size: u32,
pub account_index_offset: u64,
pub owners_offset: u64,
pub min_account_address: Pubkey,
pub max_account_address: Pubkey,
pub hash: Hash,
pub footer_size: u64,
pub format_version: u64,
}
Fields§
§account_meta_format: AccountMetaFormat
The format of the account meta entry.
owners_block_format: OwnersBlockFormat
The format of the owners block.
account_index_format: AccountIndexFormat
The format of the account index block.
account_block_format: AccountBlockFormat
The format of the account block.
account_entry_count: u32
The number of account entries.
account_meta_entry_size: u32
The size of each account meta entry in bytes.
account_block_size: u64
The default size of an account block before compression.
If the size of one account (meta + data + optional fields) before compression is bigger than this number, than it is considered a blob account and it will have its own account block.
owner_count: u32
The number of owners.
owner_entry_size: u32
The size of each owner entry.
account_index_offset: u64
The offset pointing to the first byte of the account index block.
owners_offset: u64
The offset pointing to the first byte of the owners block.
min_account_address: Pubkey
The smallest account address in this file.
max_account_address: Pubkey
The largest account address in this file.
hash: Hash
A hash that represents a tiered accounts file for consistency check.
The size of the footer including the magic number.
format_version: u64
The format version of the tiered accounts file.
Implementations§
pub fn new_from_path(path: impl AsRef<Path>) -> TsResult<Self>
pub fn new_from_mmap(map: &Mmap) -> TsResult<&TieredStorageFooter>
Trait Implementations§
source§fn clone(&self) -> TieredStorageFooter
fn clone(&self) -> TieredStorageFooter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§fn eq(&self, other: &TieredStorageFooter) -> bool
fn eq(&self, other: &TieredStorageFooter) -> bool
self
and other
values to be equal, and is used
by ==
.Auto Trait Implementations§
Blanket Implementations§
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.