Struct solana_ledger::leader_schedule::LeaderSchedule
source · pub struct LeaderSchedule {
slot_leaders: Vec<Pubkey>,
index: HashMap<Pubkey, Arc<Vec<usize>>>,
}
Expand description
Stake-weighted leader schedule for one epoch.
Fields§
§slot_leaders: Vec<Pubkey>
§index: HashMap<Pubkey, Arc<Vec<usize>>>
Implementations§
Trait Implementations§
source§impl Debug for LeaderSchedule
impl Debug for LeaderSchedule
source§impl Default for LeaderSchedule
impl Default for LeaderSchedule
source§fn default() -> LeaderSchedule
fn default() -> LeaderSchedule
Returns the “default value” for a type. Read more
source§impl Index<u64> for LeaderSchedule
impl Index<u64> for LeaderSchedule
source§impl PartialEq<LeaderSchedule> for LeaderSchedule
impl PartialEq<LeaderSchedule> for LeaderSchedule
source§fn eq(&self, other: &LeaderSchedule) -> bool
fn eq(&self, other: &LeaderSchedule) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for LeaderSchedule
impl StructuralEq for LeaderSchedule
impl StructuralPartialEq for LeaderSchedule
Auto Trait Implementations§
impl RefUnwindSafe for LeaderSchedule
impl Send for LeaderSchedule
impl Sync for LeaderSchedule
impl Unpin for LeaderSchedule
impl UnwindSafe for LeaderSchedule
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
§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
source§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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request