Struct solana_program::vote::state::Lockout
source · pub struct Lockout { /* private fields */ }
Implementations§
source§impl Lockout
impl Lockout
pub fn new(slot: Slot) -> Self
pub fn new_with_confirmation_count(slot: Slot, confirmation_count: u32) -> Self
pub fn lockout(&self) -> u64
pub fn last_locked_out_slot(&self) -> Slot
pub fn is_locked_out_at_slot(&self, slot: Slot) -> bool
pub fn slot(&self) -> Slot
pub fn confirmation_count(&self) -> u32
pub fn increase_confirmation_count(&mut self, by: u32)
Trait Implementations§
source§impl<'de> Deserialize<'de> for Lockout
impl<'de> Deserialize<'de> for Lockout
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