Trait solana_runtime::accounts_db::AppendVecScan
source · 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§
sourcefn found_account(&mut self, account: &LoadedAccount<'_>)
fn found_account(&mut self, account: &LoadedAccount<'_>)
found account
in the append vec
sourcefn scanning_complete(self) -> BinnedHashData
fn scanning_complete(self) -> BinnedHashData
scanning is done
sourcefn init_accum(&mut self, count: usize)
fn init_accum(&mut self, count: usize)
initialize accumulator