Struct solana_runtime::vote_account::VoteAccounts
source · pub struct VoteAccounts { /* private fields */ }
Implementations§
source§impl VoteAccounts
impl VoteAccounts
pub fn staked_nodes(&self) -> Arc<HashMap<Pubkey, u64>>
pub fn get(&self, pubkey: &Pubkey) -> Option<&(u64, VoteAccount)>
Trait Implementations§
source§impl AbiExample for VoteAccounts
impl AbiExample for VoteAccounts
source§impl AsRef<HashMap<Pubkey, (u64, VoteAccount), RandomState>> for VoteAccounts
impl AsRef<HashMap<Pubkey, (u64, VoteAccount), RandomState>> for VoteAccounts
source§fn as_ref(&self) -> &VoteAccountsHashMap
fn as_ref(&self) -> &VoteAccountsHashMap
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for VoteAccounts
impl Clone for VoteAccounts
source§impl Debug for VoteAccounts
impl Debug for VoteAccounts
source§impl Default for VoteAccounts
impl Default for VoteAccounts
source§impl<'de> Deserialize<'de> for VoteAccounts
impl<'de> Deserialize<'de> for VoteAccounts
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&VoteAccounts> for Arc<VoteAccountsHashMap>
impl From<&VoteAccounts> for Arc<VoteAccountsHashMap>
source§fn from(vote_accounts: &VoteAccounts) -> Self
fn from(vote_accounts: &VoteAccounts) -> Self
Converts to this type from the input type.
source§impl From<Arc<HashMap<Pubkey, (u64, VoteAccount), RandomState>>> for VoteAccounts
impl From<Arc<HashMap<Pubkey, (u64, VoteAccount), RandomState>>> for VoteAccounts
source§fn from(vote_accounts: Arc<VoteAccountsHashMap>) -> Self
fn from(vote_accounts: Arc<VoteAccountsHashMap>) -> Self
Converts to this type from the input type.
source§impl FromIterator<(Pubkey, (u64, VoteAccount))> for VoteAccounts
impl FromIterator<(Pubkey, (u64, VoteAccount))> for VoteAccounts
source§fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = (Pubkey, (u64, VoteAccount))>,
fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = (Pubkey, (u64, VoteAccount))>,
Creates a value from an iterator. Read more