Struct solana_client::rpc_cache::LargestAccountsCache
source · [−]pub struct LargestAccountsCache { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl Clone for LargestAccountsCache
impl Clone for LargestAccountsCache
sourcefn clone(&self) -> LargestAccountsCache
fn clone(&self) -> LargestAccountsCache
Returns a copy of the value. Read more
1.0.0 · sourcefn 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<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more