Struct solana_client::rpc_cache::LargestAccountsCache
source · pub struct LargestAccountsCache { /* private fields */ }
Implementations§
source§impl LargestAccountsCache
impl LargestAccountsCache
pub fn new(duration: u64) -> Self
pub fn get_largest_accounts(
&self,
filter: &Option<RpcLargestAccountsFilter>
) -> Option<(u64, Vec<RpcAccountBalance>)>
pub fn set_largest_accounts(
&mut self,
filter: &Option<RpcLargestAccountsFilter>,
slot: u64,
accounts: &[RpcAccountBalance]
)
Trait Implementations§
source§impl Clone for LargestAccountsCache
impl Clone for LargestAccountsCache
source§fn clone(&self) -> LargestAccountsCache
fn clone(&self) -> LargestAccountsCache
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more