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.

Retains the records satisfying a predicate.

Trait Implementations

Gets a record from the store, given its key.

Puts a record into the store.

Removes the record with the given key from the store.

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.