Struct tokio_sync::lock::LockGuard[][src]

pub struct LockGuard<T>(_);
Expand description

A handle to a held Lock.

As long as you have this guard, you have exclusive access to the underlying T. The guard internally keeps a reference-couned pointer to the original Lock, so even if the lock goes away, the guard remains valid.

The lock is automatically released whenever the guard is dropped, at which point poll_lock will succeed yet again.

Trait Implementations

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Formats the value using the given formatter. Read more

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

Performs the conversion.

Performs the conversion.

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.