Struct solana_gossip::crds::Crds [−][src]
pub struct Crds { /* fields omitted */ }
Implementations
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
impl<T> TupleTree<T, ()> for T
impl<T> TupleTree<T, ()> for T
pub const SIZE: Size
pub fn descendants(_indirect_level: usize) -> usize
pub fn preorder_with_size_hint(self, f: &mut impl FnMut(Visit<T>, Size))
pub fn postorder_with_size_hint(self, f: &mut impl FnMut(Visit<T>, Size))
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