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

ValueRef is returned when invoking get method of the Cache. It contains a RwLockReadGuard and a value reference.

Implementations

Get the reference of the inner value.

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

Get the value and drop the inner RwLockReadGuard.

Trait Implementations

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.