Trait solana_runtime::secondary_index::SecondaryIndexEntry[][src]

pub trait SecondaryIndexEntry: Debug {
    fn get_or_create(&self, key: &Pubkey, f: &dyn Fn(&RwLock<HashSet<Slot>>));
fn get<T>(
        &self,
        key: &Pubkey,
        f: &dyn Fn(Option<&RwLock<HashSet<Slot>>>) -> T
    ) -> T;
fn remove_key_if_empty(&self, key: &Pubkey);
fn is_empty(&self) -> bool;
fn keys(&self) -> Vec<Pubkey>;
fn len(&self) -> usize; }

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]

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]

Loading content...

Implementors

impl SecondaryIndexEntry for DashMapSecondaryIndexEntry[src]

impl SecondaryIndexEntry for RwLockSecondaryIndexEntry[src]

Loading content...