Struct solana_runtime::accounts_db::AliveAccounts
source · pub(crate) struct AliveAccounts<'a> {
pub(crate) slot: Slot,
pub(crate) accounts: Vec<&'a StoredAccountMeta<'a>>,
pub(crate) bytes: usize,
}
Expand description
hold alive accounts alive means in the accounts index
Fields§
§slot: Slot
slot the accounts are currently stored in
accounts: Vec<&'a StoredAccountMeta<'a>>
§bytes: usize
Trait Implementations§
source§impl<'a> Debug for AliveAccounts<'a>
impl<'a> Debug for AliveAccounts<'a>
source§impl<'a> Default for AliveAccounts<'a>
impl<'a> Default for AliveAccounts<'a>
source§fn default() -> AliveAccounts<'a>
fn default() -> AliveAccounts<'a>
Returns the “default value” for a type. Read more
source§impl<'a> ShrinkCollectRefs<'a> for AliveAccounts<'a>
impl<'a> ShrinkCollectRefs<'a> for AliveAccounts<'a>
fn collect(&mut self, other: Self)
fn with_capacity(capacity: usize, slot: Slot) -> Self
fn add(&mut self, _ref_count: u64, account: &'a StoredAccountMeta<'a>)
fn len(&self) -> usize
fn alive_bytes(&self) -> usize
fn alive_accounts(&self) -> &Vec<&'a StoredAccountMeta<'a>>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for AliveAccounts<'a>
impl<'a> Send for AliveAccounts<'a>
impl<'a> Sync for AliveAccounts<'a>
impl<'a> Unpin for AliveAccounts<'a>
impl<'a> UnwindSafe for AliveAccounts<'a>
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