[][src]Struct solana_vote_program::authorized_voters::AuthorizedVoters

pub struct AuthorizedVoters { /* fields omitted */ }

Implementations

impl AuthorizedVoters[src]

pub fn new(epoch: Epoch, pubkey: Pubkey) -> Self[src]

pub fn get_authorized_voter(&self, epoch: Epoch) -> Option<Pubkey>[src]

pub fn get_and_cache_authorized_voter_for_epoch(
    &mut self,
    epoch: Epoch
) -> Option<Pubkey>
[src]

pub fn insert(&mut self, epoch: Epoch, authorized_voter: Pubkey)[src]

pub fn purge_authorized_voters(&mut self, current_epoch: Epoch) -> bool[src]

pub fn is_empty(&self) -> bool[src]

pub fn first(&self) -> Option<(&u64, &Pubkey)>[src]

pub fn last(&self) -> Option<(&u64, &Pubkey)>[src]

pub fn len(&self) -> usize[src]

pub fn contains(&self, epoch: Epoch) -> bool[src]

pub fn iter(&self) -> Iter<'_, Epoch, Pubkey>[src]

Trait Implementations

impl AbiExample for AuthorizedVoters[src]

impl Clone for AuthorizedVoters[src]

impl Debug for AuthorizedVoters[src]

impl Default for AuthorizedVoters[src]

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

impl Eq for AuthorizedVoters[src]

impl PartialEq<AuthorizedVoters> for AuthorizedVoters[src]

impl Serialize for AuthorizedVoters[src]

impl StructuralEq for AuthorizedVoters[src]

impl StructuralPartialEq for AuthorizedVoters[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AbiEnumVisitor for T where
    T: 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, 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>,