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§

source

type Item: 'static

Item type stored in this global lock.

source

type Backend: Backend + 'static

The backend used for this global lock.

Required Associated Constants§

source

const NAME: &'static CStr

The name for this global lock.

Required Methods§

source

fn get_lock_class() -> Pin<&'static LockClassKey>

The class for this global lock.

Object Safety§

This trait is not object safe.

Implementors§