Protocol std::sync::Lockable

protocol Lockable<Self> { ... }

Protocol for types implementing mutex-like semantics.

Implemented by e.g. Mutex and Spinlock.

Required methods