Struct solana_runtime::commitment::BlockCommitment[][src]

pub struct BlockCommitment {
    pub commitment: BlockCommitmentArray,
}

Fields

commitment: BlockCommitmentArray

Implementations

impl BlockCommitment[src]

pub fn increase_confirmation_stake(
    &mut self,
    confirmation_count: usize,
    stake: u64
)
[src]

pub fn get_confirmation_stake(&mut self, confirmation_count: usize) -> u64[src]

pub fn increase_rooted_stake(&mut self, stake: u64)[src]

pub fn get_rooted_stake(&self) -> u64[src]

pub fn new(commitment: BlockCommitmentArray) -> Self[src]

Trait Implementations

impl Clone for BlockCommitment[src]

impl Debug for BlockCommitment[src]

impl Default for BlockCommitment[src]

impl<'de> Deserialize<'de> for BlockCommitment[src]

impl Eq for BlockCommitment[src]

impl PartialEq<BlockCommitment> for BlockCommitment[src]

impl Serialize for BlockCommitment[src]

impl StructuralEq for BlockCommitment[src]

impl StructuralPartialEq for BlockCommitment[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]