pub struct ValueRefMut<'a, V, S = RandomState> { /* private fields */ }
Expand description

ValueRefMut is returned when invoking get_mut method of the Cache. It contains a RwLockWriteGuard and a mutable value reference.

Implementations

Get the reference of the inner value.

Get the mutable reference of the inner value.

Set the value

Set the value, and release the inner RwLockWriteGuard automatically

Drop self, release the inner RwLockReadGuard, which is the same as drop()

Clone the inner value

Read the inner value and drop the inner RwLockReadGuard.

Trait Implementations

Performs the conversion.

Performs the conversion.

Formats the value using the given formatter. Read more

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.

Calls U::from(self).

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

Converts the given value to a String. Read more

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.