trait AppendVecScan: Send + Sync + Clone {
    // Required methods
    fn filter(&mut self, pubkey: &Pubkey) -> bool;
    fn set_slot(&mut self, slot: Slot);
    fn found_account(&mut self, account: &LoadedAccount<'_>);
    fn scanning_complete(self) -> BinnedHashData;
    fn init_accum(&mut self, count: usize);
    fn get_accum(&mut self) -> BinnedHashData;
    fn set_accum(&mut self, accum: BinnedHashData);
}
Expand description

called on a struct while scanning append vecs

Required Methods§

source

fn filter(&mut self, pubkey: &Pubkey) -> bool

return true if this pubkey should be included

source

fn set_slot(&mut self, slot: Slot)

set current slot of the scan

source

fn found_account(&mut self, account: &LoadedAccount<'_>)

found account in the append vec

source

fn scanning_complete(self) -> BinnedHashData

scanning is done

source

fn init_accum(&mut self, count: usize)

initialize accumulator

source

fn get_accum(&mut self) -> BinnedHashData

source

fn set_accum(&mut self, accum: BinnedHashData)

Implementors§