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

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

Fields

account_maps: Vec<RwLock<AccountMap<Pubkey, Arc<AccountMapEntryInner<T>>>>>removed_bank_ids: Mutex<HashSet<BankId>>

Implementations

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

pub fn get_account_read_entry_with_lock(
    &self,
    pubkey: &Pubkey,
    lock: &RwLockReadGuard<'_, AccountMap<Pubkey, Arc<AccountMapEntryInner<T>>>>
) -> Option<ReadAccountMapEntry<T>>

Given a list of slots, return a new list of only the slots that are rooted

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

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.