Skip to main content

ConstRawLock

Trait ConstRawLock 

Source
pub trait ConstRawLock: RawLock {
    const INIT: Self;
}
Expand description

Trait for RawLock types that can be statically initialized in a const context (e.g. for global singleton locks).

Required Associated Constants§

Source

const INIT: Self

Constant-initialized value for the lock.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl ConstRawLock for RawMonitoredSpinlockStorage

Source§

const INIT: Self = Self::INIT

Source§

impl ConstRawLock for RawMutexStorage

Source§

const INIT: Self = Self::INIT

Source§

impl ConstRawLock for RawSpinlockStorage

Source§

const INIT: Self = Self::INIT

Source§

impl<L: ConstRawLock, P: ExclusiveLockPolicy<L>, const LOCK_FLAGS: LockFlags> ConstRawLock for LockdepTracked<L, P, LOCK_FLAGS>

Source§

const INIT: Self = Self::INIT