Struct solana_runtime::vote_account::VoteAccounts
source · [−]pub struct VoteAccounts { /* private fields */ }
Implementations
sourceimpl VoteAccounts
impl VoteAccounts
pub fn staked_nodes(&self) -> Arc<HashMap<Pubkey, u64>>
pub fn get_delegated_stake(&self, pubkey: &Pubkey) -> u64
Trait Implementations
sourceimpl AbiExample for VoteAccounts
impl AbiExample for VoteAccounts
sourceimpl AsRef<HashMap<Pubkey, (u64, VoteAccount), RandomState>> for VoteAccounts
impl AsRef<HashMap<Pubkey, (u64, VoteAccount), RandomState>> for VoteAccounts
sourcefn as_ref(&self) -> &VoteAccountsHashMap
fn as_ref(&self) -> &VoteAccountsHashMap
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for VoteAccounts
impl Clone for VoteAccounts
sourcefn clone(&self) -> VoteAccounts
fn clone(&self) -> VoteAccounts
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 more
sourceimpl Debug for VoteAccounts
impl Debug for VoteAccounts
sourceimpl Default for VoteAccounts
impl Default for VoteAccounts
sourceimpl<'de> Deserialize<'de> for VoteAccounts
impl<'de> Deserialize<'de> for VoteAccounts
sourcefn 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
sourceimpl From<&VoteAccounts> for Arc<VoteAccountsHashMap>
impl From<&VoteAccounts> for Arc<VoteAccountsHashMap>
sourcefn from(vote_accounts: &VoteAccounts) -> Self
fn from(vote_accounts: &VoteAccounts) -> Self
Converts to this type from the input type.
sourceimpl From<Arc<HashMap<Pubkey, (u64, VoteAccount), RandomState>>> for VoteAccounts
impl From<Arc<HashMap<Pubkey, (u64, VoteAccount), RandomState>>> for VoteAccounts
sourcefn from(vote_accounts: Arc<VoteAccountsHashMap>) -> Self
fn from(vote_accounts: Arc<VoteAccountsHashMap>) -> Self
Converts to this type from the input type.
sourceimpl FromIterator<(Pubkey, (u64, VoteAccount))> for VoteAccounts
impl FromIterator<(Pubkey, (u64, VoteAccount))> for VoteAccounts
sourcefn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = (Pubkey, (u64, VoteAccount))>,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = (Pubkey, (u64, VoteAccount))>,
Creates a value from an iterator. Read more
sourceimpl PartialEq<VoteAccounts> for VoteAccounts
impl PartialEq<VoteAccounts> for VoteAccounts
sourceimpl Serialize for VoteAccounts
impl Serialize for VoteAccounts
Auto Trait Implementations
impl RefUnwindSafe for VoteAccounts
impl Send for VoteAccounts
impl Sync for VoteAccounts
impl Unpin for VoteAccounts
impl UnwindSafe for VoteAccounts
Blanket Implementations
sourceimpl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
sourceimpl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
sourceimpl<T> AbiExample for T
impl<T> AbiExample for T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more