[][src]Struct solana_runtime::accounts_index::AccountsIndex

pub struct AccountsIndex<T> {
    pub account_maps: RwLock<AccountMap<Pubkey, Arc<AccountMapEntryInner<T>>>>,
    // some fields omitted
}

Fields

account_maps: RwLock<AccountMap<Pubkey, Arc<AccountMapEntryInner<T>>>>

Implementations

impl<T: 'static + Clone> AccountsIndex<T>[src]

pub fn get_account_read_entry(
    &self,
    pubkey: &Pubkey
) -> Option<ReadAccountMapEntry<T>>
[src]

pub fn handle_dead_keys(&self, dead_keys: &[Pubkey])[src]

pub fn get_rooted_entries(
    &self,
    slice: SlotSlice<'_, T>,
    max: Option<Slot>
) -> SlotList<T>
[src]

pub fn roots_and_ref_count(
    &self,
    locked_account_entry: &ReadAccountMapEntry<T>,
    max: Option<Slot>
) -> (SlotList<T>, RefCount)
[src]

pub fn purge(&self, pubkey: &Pubkey) -> (SlotList<T>, bool)[src]

pub fn purge_exact(
    &self,
    pubkey: &Pubkey,
    slots: HashSet<Slot>
) -> (SlotList<T>, bool)
[src]

pub fn min_ongoing_scan_root(&self) -> Option<Slot>[src]

pub fn upsert(
    &self,
    slot: Slot,
    pubkey: &Pubkey,
    account_info: T,
    reclaims: &mut SlotList<T>
) -> bool
[src]

pub fn unref_from_storage(&self, pubkey: &Pubkey)[src]

pub fn ref_count_from_storage(&self, pubkey: &Pubkey) -> RefCount[src]

pub fn clean_rooted_entries(
    &self,
    pubkey: &Pubkey,
    reclaims: &mut SlotList<T>,
    max_clean_root: Option<Slot>
)
[src]

pub fn clean_unrooted_entries_by_slot(
    &self,
    purge_slot: Slot,
    pubkey: &Pubkey,
    reclaims: &mut SlotList<T>
)
[src]

pub fn can_purge(max_root: Slot, slot: Slot) -> bool[src]

pub fn is_root(&self, slot: Slot) -> bool[src]

pub fn add_root(&self, slot: Slot)[src]

pub fn clean_dead_slot(&self, slot: Slot)[src]

Remove the slot when the storage for the slot is freed Accounts no longer reference this slot.

pub fn reset_uncleaned_roots(
    &self,
    max_clean_root: Option<Slot>
) -> HashSet<Slot>
[src]

pub fn is_uncleaned_root(&self, slot: Slot) -> bool[src]

pub fn all_roots(&self) -> Vec<Slot>[src]

Trait Implementations

impl<T: Debug> Debug for AccountsIndex<T>[src]

impl<T: Default> Default for AccountsIndex<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for AccountsIndex<T>

impl<T> Send for AccountsIndex<T> where
    T: Send + Sync

impl<T> Sync for AccountsIndex<T> where
    T: Send + Sync

impl<T> Unpin for AccountsIndex<T>

impl<T> UnwindSafe for AccountsIndex<T>

Blanket Implementations

impl<T> AbiExample for T[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,