Struct libp2p_kad::record::store::MemoryStore
source · [−]pub struct MemoryStore { /* private fields */ }Expand description
In-memory implementation of a RecordStore.
Implementations
Creates a new MemoryRecordStore with a default configuration.
Creates a new MemoryRecordStore with the given configuration.
Trait Implementations
type ProvidedIter = Map<Iter<'a, ProviderRecord>, fn(_: &'a ProviderRecord) -> Cow<'a, ProviderRecord>>
Gets a record from the store, given its key.
Gets an iterator over all (value-) records currently stored.
Adds a provider record to the store. Read more
Gets a copy of the stored provider records for the given key.
Gets an iterator over all stored provider records for which the node owning the store is itself the provider. Read more
Removes a provider record from the store.