lock_order::lock

Trait LockLevelFor

Source
pub trait LockLevelFor<T> {
    type Data;
}
Expand description

Declares a type as the lock level for some type T that exposes locked state of type Self::Data.

If T implements OrderedLockAccess for Self::Data, then the LockFor and RwLockFor traits can be used to gain access to the protected state Data within T at lock level Self.

See OrderedLockAccess for more details.

Required Associated Types§

Source

type Data

The data type within T that this is a lock level for.

Implementors§