MutexExt

Trait MutexExt 

Source
pub trait MutexExt<T> {
    // Required method
    fn lock_blocking(&self) -> MutexGuard<'_, T>;
}

Required Methods§

Source

fn lock_blocking(&self) -> MutexGuard<'_, T>

Lock the mutex, blocking the current thread until it can be acquired.

Implementations on Foreign Types§

Source§

impl<T> MutexExt<T> for Mutex<T>

Source§

fn lock_blocking(&self) -> MutexGuard<'_, T>

Implementors§