Skip to main content

LockExt

Trait LockExt 

Source
pub trait LockExt<T: ?Sized> {
    // Required method
    fn lock_ok(&self) -> MutexGuard<'_, T>;
}

Required Methods§

Source

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

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: ?Sized> LockExt<T> for Mutex<T>

Source§

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

Implementors§