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 Constants§
Required Associated Types§
Required Methods§
Sourcefn get_lock_class() -> Pin<&'static LockClassKey>
fn get_lock_class() -> Pin<&'static LockClassKey>
The class for this global lock.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".