pub struct EntryWriteGuard<'a, K, V, const N: usize> where
    K: KeyTraits
{ /* private fields */ }
Expand description

Guard for the write lock. Puts unused entries into the LRU list.

Implementations

Mark the entry for expiration. When dropped it will be put in front of the LRU list and by that evicted soon. Use with care, when many entries become pushed to the front, they eventually bubble up again.

Downgrade a write lock to a read lock without releasing it.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Executes the destructor for this type. 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.

Calls U::from(self).

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

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.