Struct solana_runtime::stakes::Stakes [−][src]
pub struct Stakes { /* fields omitted */ }
Implementations
impl Stakes
[src]
impl Stakes
[src]pub fn history(&self) -> &StakeHistory
[src]
pub fn clone_with_epoch(
&self,
next_epoch: Epoch,
fix_stake_deactivate: bool
) -> Self
[src]
&self,
next_epoch: Epoch,
fix_stake_deactivate: bool
) -> Self
pub fn vote_balance_and_staked(&self) -> u64
[src]
pub fn is_stake(account: &AccountSharedData) -> bool
[src]
pub fn store(
&mut self,
pubkey: &Pubkey,
account: &AccountSharedData,
fix_stake_deactivate: bool,
check_vote_init: bool
) -> Option<ArcVoteAccount>
[src]
&mut self,
pubkey: &Pubkey,
account: &AccountSharedData,
fix_stake_deactivate: bool,
check_vote_init: bool
) -> Option<ArcVoteAccount>
pub fn vote_accounts(&self) -> &HashMap<Pubkey, (u64, ArcVoteAccount)>
[src]
pub fn stake_delegations(&self) -> &HashMap<Pubkey, Delegation>
[src]
pub fn staked_nodes(&self) -> HashMap<Pubkey, u64>
[src]
pub fn highest_staked_node(&self) -> Option<Pubkey>
[src]
Trait Implementations
impl AbiExample for Stakes
[src]
impl AbiExample for Stakes
[src]impl<'de> Deserialize<'de> for Stakes
[src]
impl<'de> Deserialize<'de> for Stakes
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl StructuralPartialEq for Stakes
[src]
impl StructuralPartialEq for Stakes
[src]Auto Trait Implementations
impl !RefUnwindSafe for Stakes
impl !RefUnwindSafe for Stakes
impl !UnwindSafe for Stakes
impl !UnwindSafe for Stakes
Blanket Implementations
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
[src]
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
[src]pub default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
[src]
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
[src]
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
[src]pub default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
[src]
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiExample for T
[src]
impl<T> AbiExample for T
[src]impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,