Trait solana_runtime::secondary_index::SecondaryIndexEntry [−][src]
Required methods
fn get_or_create(&self, key: &Pubkey, f: &dyn Fn(&RwLock<HashSet<Slot>>))
[src]
fn get<T>(
&self,
key: &Pubkey,
f: &dyn Fn(Option<&RwLock<HashSet<Slot>>>) -> T
) -> T
[src]
&self,
key: &Pubkey,
f: &dyn Fn(Option<&RwLock<HashSet<Slot>>>) -> T
) -> T
fn remove_key_if_empty(&self, key: &Pubkey)
[src]
fn is_empty(&self) -> bool
[src]
fn keys(&self) -> Vec<Pubkey>
[src]
fn len(&self) -> usize
[src]
Implementors
impl SecondaryIndexEntry for DashMapSecondaryIndexEntry
[src]
fn get_or_create(&self, key: &Pubkey, f: &dyn Fn(&RwLock<HashSet<Slot>>))
[src]
fn get<T>(
&self,
key: &Pubkey,
f: &dyn Fn(Option<&RwLock<HashSet<Slot>>>) -> T
) -> T
[src]
&self,
key: &Pubkey,
f: &dyn Fn(Option<&RwLock<HashSet<Slot>>>) -> T
) -> T
fn remove_key_if_empty(&self, key: &Pubkey)
[src]
fn is_empty(&self) -> bool
[src]
fn keys(&self) -> Vec<Pubkey>
[src]
fn len(&self) -> usize
[src]
impl SecondaryIndexEntry for RwLockSecondaryIndexEntry
[src]
fn get_or_create(&self, key: &Pubkey, f: &dyn Fn(&RwLock<HashSet<Slot>>))
[src]
fn get<T>(
&self,
key: &Pubkey,
f: &dyn Fn(Option<&RwLock<HashSet<Slot>>>) -> T
) -> T
[src]
&self,
key: &Pubkey,
f: &dyn Fn(Option<&RwLock<HashSet<Slot>>>) -> T
) -> T