Trait kernel::sync::lock::GlobalLockBackend
source · pub trait GlobalLockBackend {
type Item: 'static;
type Backend: Backend + 'static;
const NAME: &'static CStr;
// Required method
fn get_lock_class() -> Pin<&'static LockClassKey>;
}
Expand description
Trait implemented for marker types for global locks.
See global_lock!
for examples.
Required Associated Types§
Required Associated Constants§
Required Methods§
sourcefn get_lock_class() -> Pin<&'static LockClassKey>
fn get_lock_class() -> Pin<&'static LockClassKey>
The class for this global lock.
Object Safety§
This trait is not object safe.