pub struct LockingHashMap<Key: Clone + Debug + Eq + Hash, Value: Clone + Debug> { /* private fields */ }
Expand description

A generic locking hash map with ability to read before write consistency

Implementations

Get a clone of the value

Filtered read clone based on keys or values

All keys of the hash map

Read a clone of the entire state

Insert new entry

Remove old entries

Take in a function to modify the data, must handle concurrency control with the input function

Get the underlying RwLock of the map. Usage is discouraged as it leads to the possiblity of leaving the lock held for a long period of time. However, not everything fits into the write model.

Trait Implementations

Formats the value using the given formatter. Read more

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more