Struct lrs::sync::LockGuard

A lock-guard.

Syntax

struct LockGuard<'a> {
    /* private fields */
}

Methods

ReceiverNameDescription
&selfas_lock

Returns the lock guarded by this guard.

selfunlock

Unlocks the lock and returns a reference to the lock.

Trait implementations

NameDescription
Drop

Objects with a destructor.

Remarks

This guard automatically unlocks the lock when it goes out of scope.