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.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.