pub struct InMemAccountsIndex<T: IndexValue> { /* private fields */ }
Implementations
sourceimpl<T: IndexValue> InMemAccountsIndex<T>
impl<T: IndexValue> InMemAccountsIndex<T>
pub fn new(storage: &Arc<BucketMapHolder<T>>, bin: usize) -> Self
pub fn items<R>(
&self,
range: &Option<&R>
) -> Vec<(Pubkey, Arc<AccountMapEntryInner<T>>)>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
where
R: RangeBounds<Pubkey> + Debug,
A: Allocator,
pub fn keys(&self) -> Vec<Pubkey>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourcepub fn get(&self, pubkey: &Pubkey) -> Option<Arc<AccountMapEntryInner<T>>>
pub fn get(&self, pubkey: &Pubkey) -> Option<Arc<AccountMapEntryInner<T>>>
lookup ‘pubkey’ in index (in mem or on disk)
pub fn remove_if_slot_list_empty(&self, pubkey: Pubkey) -> bool
pub fn slot_list_mut<RT>(
&self,
pubkey: &Pubkey,
user: impl for<'a> FnOnce(&mut RwLockWriteGuard<'a, SlotList<T>>) -> RT
) -> Option<RT>
pub fn unref(&self, pubkey: &Pubkey)
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 len_for_stats(&self) -> usize
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,
pub fn set_bin_dirty(&self)
pub fn stats(&self) -> &BucketMapHolderStats
pub fn update_time_stat(stat: &AtomicU64, m: Measure)
Trait Implementations
sourceimpl<T: IndexValue> Debug for InMemAccountsIndex<T>
impl<T: IndexValue> Debug for InMemAccountsIndex<T>
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
sourceimpl<T> AbiExample for T
impl<T> AbiExample for T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more