Struct solana_gossip::push_active_set::PushActiveSetEntry
source · struct PushActiveSetEntry(IndexMap<Pubkey, AtomicBloom<Pubkey>>);
Tuple Fields§
§0: IndexMap<Pubkey, AtomicBloom<Pubkey>>
Implementations§
source§impl PushActiveSetEntry
impl PushActiveSetEntry
const BLOOM_FALSE_RATE: f64 = 0.10000000000000001f64
const BLOOM_MAX_BITS: usize = 32_768usize
fn get_nodes<'a>( &'a self, origin: &'a Pubkey, should_force_push: impl FnMut(&Pubkey) -> bool + 'a ) -> impl Iterator<Item = &Pubkey> + 'a
fn prune(&self, node: &Pubkey, origin: &Pubkey)
fn rotate<R: Rng>( &mut self, rng: &mut R, size: usize, num_bloom_filter_items: usize, nodes: &[Pubkey], weights: &[u64] )
Trait Implementations§
source§impl Default for PushActiveSetEntry
impl Default for PushActiveSetEntry
source§fn default() -> PushActiveSetEntry
fn default() -> PushActiveSetEntry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for PushActiveSetEntry
impl Send for PushActiveSetEntry
impl Sync for PushActiveSetEntry
impl Unpin for PushActiveSetEntry
impl UnwindSafe for PushActiveSetEntry
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