#[repr(C)]pub struct TieredStorageFooter {Show 16 fields
pub account_meta_format: AccountMetaFormat,
pub owners_block_format: OwnersBlockFormat,
pub index_block_format: IndexBlockFormat,
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 index_block_offset: u64,
pub owners_block_offset: u64,
pub min_account_address: Pubkey,
pub max_account_address: Pubkey,
pub hash: Hash,
pub format_version: u64,
pub footer_size: u64,
}
Fields§
§account_meta_format: AccountMetaFormat
The format of the account meta entry.
owners_block_format: OwnersBlockFormat
The format of the owners block.
index_block_format: IndexBlockFormat
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.
index_block_offset: u64
The offset pointing to the first byte of the account index block.
owners_block_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.
format_version: u64
The format version of the tiered accounts file.
The size of the footer including the magic number.
Implementations§
pub fn new_from_path(path: impl AsRef<Path>) -> TieredStorageResult<Self>
pub fn new_from_mmap(mmap: &Mmap) -> TieredStorageResult<&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 moreAuto 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more