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 moreAuto Trait Implementations§
impl RefUnwindSafe for LargestAccountsCache
impl Send for LargestAccountsCache
impl Sync for LargestAccountsCache
impl Unpin for LargestAccountsCache
impl UnwindSafe for LargestAccountsCache
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more