Struct solana_runtime::accounts_db::ShrinkCollect
source · pub(crate) struct ShrinkCollect<'a, T: ShrinkCollectRefs<'a>> {
pub(crate) slot: Slot,
pub(crate) capacity: u64,
pub(crate) aligned_total_bytes: u64,
pub(crate) unrefed_pubkeys: Vec<&'a Pubkey>,
pub(crate) alive_accounts: T,
pub(crate) alive_total_bytes: usize,
pub(crate) total_starting_accounts: usize,
pub(crate) all_are_zero_lamports: bool,
pub(crate) _index_entries_being_shrunk: Vec<Arc<AccountMapEntryInner<AccountInfo>>>,
}
Fields§
§slot: Slot
§capacity: u64
§aligned_total_bytes: u64
§unrefed_pubkeys: Vec<&'a Pubkey>
§alive_accounts: T
§alive_total_bytes: usize
total size in storage of all alive accounts
total_starting_accounts: usize
§all_are_zero_lamports: bool
true if all alive accounts are zero lamports
_index_entries_being_shrunk: Vec<Arc<AccountMapEntryInner<AccountInfo>>>
index entries that need to be held in memory while shrink is in progress These aren’t read - they are just held so that entries cannot be flushed.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for ShrinkCollect<'a, T>where T: RefUnwindSafe,
impl<'a, T> Send for ShrinkCollect<'a, T>
impl<'a, T> Sync for ShrinkCollect<'a, T>
impl<'a, T> Unpin for ShrinkCollect<'a, T>where T: Unpin,
impl<'a, T> UnwindSafe for ShrinkCollect<'a, T>where T: UnwindSafe,
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