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

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

Fields

slot: Slotconfirmation_count: u32

Methods

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 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

impl RefUnwindSafe for Lockout

impl Send for Lockout

impl Sync for Lockout

impl Unpin for Lockout

impl UnwindSafe for Lockout

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> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> DeserializeOwned for T where
    T: 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> InitializableFromZeroed for T where
    T: Default

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.