Struct libp2p_kad::record::store::MemoryStore [−][src]
pub struct MemoryStore { /* fields omitted */ }
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.
Auto Trait Implementations
impl RefUnwindSafe for MemoryStore
impl Send for MemoryStore
impl Sync for MemoryStore
impl Unpin for MemoryStore
impl UnwindSafe for MemoryStore