Struct widerwlock::WriteGuard

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

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

Implementations

Downgrade the lock to a read lock. Other writers may take this lock in between, that is, this is not an atomic downgrade.

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.