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
impl Copy for Lockout
impl Eq for Lockout
impl StructuralPartialEq for Lockout
Auto Trait Implementations§
impl Freeze for Lockout
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> 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