pub struct InMemAccountsIndex<T: IndexValue> { /* private fields */ }
Implementations
pub fn items<R>(
&self,
range: &Option<&R>
) -> Vec<(Pubkey, Arc<AccountMapEntryInner<T>>)>ⓘ where
R: RangeBounds<Pubkey> + Debug,
lookup ‘pubkey’ in index (in mem or on disk)
pub fn slot_list_mut<RT>(
&self,
pubkey: &Pubkey,
user: impl for<'a> FnOnce(&mut RwLockWriteGuard<'a, SlotList<T>>) -> RT
) -> Option<RT>
pub fn upsert(
&self,
pubkey: &Pubkey,
new_value: PreAllocatedAccountMapEntry<T>,
reclaims: &mut SlotList<T>,
previous_slot_entry_was_cached: bool
)
pub fn lock_and_update_slot_list(
current: &AccountMapEntryInner<T>,
new_value: (Slot, T),
reclaims: &mut SlotList<T>,
previous_slot_entry_was_cached: bool
)
pub fn insert_new_entry_if_missing_with_lock(
&self,
pubkey: Pubkey,
new_entry: PreAllocatedAccountMapEntry<T>
) -> InsertNewEntryResults
pub fn just_set_hold_range_in_memory<R>(&self, range: &R, start_holding: bool) where
R: RangeBounds<Pubkey>,
pub fn hold_range_in_memory<R>(&self, range: &R, start_holding: bool) where
R: RangeBounds<Pubkey> + Debug,
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for InMemAccountsIndex<T>
impl<T> Send for InMemAccountsIndex<T>
impl<T> Sync for InMemAccountsIndex<T>
impl<T> Unpin for InMemAccountsIndex<T>
impl<T> !UnwindSafe for InMemAccountsIndex<T>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more