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
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more