Struct solana_accounts_db::tiered_storage::hot::HotStorageReader
source · pub struct HotStorageReader { /* private fields */ }
Expand description
The reader to a hot accounts file.
Implementations§
source§impl HotStorageReader
impl HotStorageReader
sourcepub fn new_from_path(path: impl AsRef<Path>) -> TieredStorageResult<Self>
pub fn new_from_path(path: impl AsRef<Path>) -> TieredStorageResult<Self>
Constructs a HotStorageReader from the specified path.
Returns the footer of the underlying tiered-storage accounts file.
sourcepub fn num_accounts(&self) -> usize
pub fn num_accounts(&self) -> usize
Returns the number of files inside the underlying tiered-storage accounts file.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for HotStorageReader
impl Send for HotStorageReader
impl Sync for HotStorageReader
impl Unpin for HotStorageReader
impl UnwindSafe for HotStorageReader
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