[][src]Struct solana_vote_program::vote_state::Lockout

pub struct Lockout {
    pub slot: Slot,
    pub confirmation_count: u32,
}

Fields

slot: Slotconfirmation_count: u32

Implementations

impl Lockout[src]

pub fn new(slot: Slot) -> Self[src]

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

pub fn expiration_slot(&self) -> Slot[src]

pub fn is_expired(&self, slot: Slot) -> bool[src]

Trait Implementations

impl AbiExample for Lockout[src]

impl Clone for Lockout[src]

impl Debug for Lockout[src]

impl Default for Lockout[src]

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

impl Eq for Lockout[src]

impl PartialEq<Lockout> for Lockout[src]

impl Serialize for Lockout[src]

impl StructuralEq for Lockout[src]

impl StructuralPartialEq for Lockout[src]

Auto Trait Implementations

Blanket Implementations

impl<T> AbiEnumVisitor for T where
    T: Serialize + ?Sized
[src]

impl<T> AbiEnumVisitor for T where
    T: AbiExample + Serialize + ?Sized
[src]

impl<T> AbiExample for T[src]

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> Same<T> for T

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<V, T> VZip<V> for T where
    V: MultiLane<T>,