Struct solana_gossip::crds::Crds [−][src]
pub struct Crds { /* fields omitted */ }
Implementations
Returns all entries which are ContactInfo.
Returns ContactInfo of all known nodes.
pub fn filter_bitmask(
&self,
mask: u64,
mask_bits: u32
) -> impl Iterator<Item = &VersionedCrdsValue>
pub fn filter_bitmask(
&self,
mask: u64,
mask_bits: u32
) -> impl Iterator<Item = &VersionedCrdsValue>
Returns all crds values which the first ‘mask_bits’ of their hash value is equal to ‘mask’.
Update the timestamp’s of all the labels that are associated with Pubkey
pub fn find_old_labels(
&self,
thread_pool: &ThreadPool,
now: u64,
timeouts: &HashMap<Pubkey, u64>
) -> Vec<CrdsValueLabel>
pub fn find_old_labels(
&self,
thread_pool: &ThreadPool,
now: u64,
timeouts: &HashMap<Pubkey, u64>
) -> Vec<CrdsValueLabel>
Find all the keys that are older or equal to the timeout.
- timeouts - Pubkey specific timeouts with Pubkey::default() as the default timeout.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Crds
impl UnwindSafe for Crds
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Wrap the input message T
in a tonic::Request
type Output = T
type Output = T
Should always be Self