Struct solana_runtime::stakes::StakesCache
source · pub(crate) struct StakesCache(RwLock<Stakes<StakeAccount<Delegation>>>);
Tuple Fields§
§0: RwLock<Stakes<StakeAccount<Delegation>>>
Implementations§
source§impl StakesCache
impl StakesCache
pub(crate) fn new(stakes: Stakes<StakeAccount<Delegation>>) -> Self
pub(crate) fn stakes( &self ) -> RwLockReadGuard<'_, Stakes<StakeAccount<Delegation>>>
pub(crate) fn check_and_store( &self, pubkey: &Pubkey, account: &impl ReadableAccount )
pub(crate) fn activate_epoch(&self, next_epoch: Epoch, thread_pool: &ThreadPool)
pub(crate) fn handle_invalid_keys( &self, invalid_stake_keys: DashMap<Pubkey, InvalidCacheEntryReason>, invalid_vote_keys: DashMap<Pubkey, InvalidCacheEntryReason>, current_slot: Slot )
Trait Implementations§
source§impl AbiExample for StakesCache
impl AbiExample for StakesCache
source§impl Debug for StakesCache
impl Debug for StakesCache
source§impl Default for StakesCache
impl Default for StakesCache
source§fn default() -> StakesCache
fn default() -> StakesCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for StakesCache
impl Send for StakesCache
impl Sync for StakesCache
impl Unpin for StakesCache
impl UnwindSafe for StakesCache
Blanket Implementations§
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