Struct solana_runtime::commitment::BlockCommitment
source · pub struct BlockCommitment {
pub commitment: BlockCommitmentArray,
}
Fields§
§commitment: BlockCommitmentArray
Implementations§
source§impl BlockCommitment
impl BlockCommitment
pub fn increase_confirmation_stake( &mut self, confirmation_count: usize, stake: u64 )
pub fn get_confirmation_stake(&mut self, confirmation_count: usize) -> u64
pub fn increase_rooted_stake(&mut self, stake: u64)
pub fn get_rooted_stake(&self) -> u64
pub fn new(commitment: BlockCommitmentArray) -> Self
Trait Implementations§
source§impl Clone for BlockCommitment
impl Clone for BlockCommitment
source§fn clone(&self) -> BlockCommitment
fn clone(&self) -> BlockCommitment
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BlockCommitment
impl Debug for BlockCommitment
source§impl Default for BlockCommitment
impl Default for BlockCommitment
source§fn default() -> BlockCommitment
fn default() -> BlockCommitment
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BlockCommitment
impl<'de> Deserialize<'de> for BlockCommitment
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 PartialEq<BlockCommitment> for BlockCommitment
impl PartialEq<BlockCommitment> for BlockCommitment
source§fn eq(&self, other: &BlockCommitment) -> bool
fn eq(&self, other: &BlockCommitment) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BlockCommitment
impl Serialize for BlockCommitment
impl Eq for BlockCommitment
impl StructuralEq for BlockCommitment
impl StructuralPartialEq for BlockCommitment
Auto Trait Implementations§
impl RefUnwindSafe for BlockCommitment
impl Send for BlockCommitment
impl Sync for BlockCommitment
impl Unpin for BlockCommitment
impl UnwindSafe for BlockCommitment
Blanket Implementations§
source§impl<T> AbiEnumVisitor for Twhere
T: Serialize + AbiExample + ?Sized,
impl<T> AbiEnumVisitor for Twhere T: Serialize + AbiExample + ?Sized,
default fn visit_for_abi( &self, digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
source§impl<T> AbiEnumVisitor for Twhere
T: Serialize + ?Sized,
impl<T> AbiEnumVisitor for Twhere T: Serialize + ?Sized,
default fn visit_for_abi( &self, _digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.