Struct solana_gossip::push_active_set::PushActiveSet
source · pub(crate) struct PushActiveSet([PushActiveSetEntry; 25]);
Tuple Fields§
§0: [PushActiveSetEntry; 25]
Implementations§
source§impl PushActiveSet
impl PushActiveSet
const MIN_NUM_BLOOM_ITEMS: usize = 512usize
pub(crate) fn get_nodes<'a>( &'a self, pubkey: &Pubkey, origin: &'a Pubkey, should_force_push: impl FnMut(&Pubkey) -> bool + 'a, stakes: &HashMap<Pubkey, u64> ) -> impl Iterator<Item = &Pubkey> + 'a
pub(crate) fn prune( &self, pubkey: &Pubkey, node: &Pubkey, origins: &[Pubkey], stakes: &HashMap<Pubkey, u64> )
pub(crate) fn rotate<R: Rng>( &mut self, rng: &mut R, size: usize, cluster_size: usize, nodes: &[Pubkey], stakes: &HashMap<Pubkey, u64> )
fn get_entry(&self, stake: Option<&u64>) -> &PushActiveSetEntry
Trait Implementations§
source§impl Default for PushActiveSet
impl Default for PushActiveSet
source§fn default() -> PushActiveSet
fn default() -> PushActiveSet
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for PushActiveSet
impl Send for PushActiveSet
impl Sync for PushActiveSet
impl Unpin for PushActiveSet
impl UnwindSafe for PushActiveSet
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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
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