Skip to main content

LockdepMutexExt

Trait LockdepMutexExt 

Source
pub trait LockdepMutexExt<T>
where T: ?Sized,
{ // Required method fn lock_nested(&self, subclass: u32) -> MutexGuard<'_, RawMutex, T>; }
Expand description

Adds lockdep subclass acquisition to a sleeping Mutex.

Required Methods§

Source

fn lock_nested(&self, subclass: u32) -> MutexGuard<'_, RawMutex, T>

Acquires the mutex using subclass for lock-order validation.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T> LockdepMutexExt<T> for Mutex<RawMutex, T>
where T: ?Sized,

Source§

fn lock_nested(&self, subclass: u32) -> MutexGuard<'_, RawMutex, T>

Implementors§