Struct widerwlock::ReadGuard

source ·
pub struct ReadGuard<'a, T: ?Sized + 'a> { /* private fields */ }
Expand description

Returned from the read() method and grants read-only access to the enclosed data

Implementations

Upgrade a read lock to a write lock. If the upgrade happened atomically (no other writers took the lock in the meantime), the return type indicates that.

Trait Implementations

The resulting type after dereferencing.
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.