Trait solana_gossip::crds_entry::CrdsEntry
source · pub trait CrdsEntry<'a, 'b>: Sized {
type Key;
fn get_entry(
table: &'a IndexMap<CrdsValueLabel, VersionedCrdsValue>,
key: Self::Key
) -> Option<Self>;
}
Expand description
Represents types which can be looked up from crds table given a key. e.g. CrdsValueLabel -> VersionedCrdsValue, CrdsValue, CrdsData Pubkey -> ContactInfo, LowestSlot, SnapshotHashes, …