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
source§impl From<LandedVote> for Lockout
impl From<LandedVote> for Lockout
source§fn from(landed_vote: LandedVote) -> Self
fn from(landed_vote: LandedVote) -> Self
Converts to this type from the input type.
source§impl From<Lockout> for LandedVote
impl From<Lockout> for LandedVote
source§impl PartialEq<Lockout> for Lockout
impl PartialEq<Lockout> for Lockout
impl Copy for Lockout
impl Eq for Lockout
impl StructuralEq for Lockout
impl StructuralPartialEq for Lockout
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§
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<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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more