Skip to main content

MutexExt

Trait MutexExt 

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

Locks a Mutex and continues with its value when a previous holder panicked.

Required Methods§

Source

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

Acquires the lock, recovering the guarded value from a poisoned mutex.

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> MutexExt<T> for Mutex<T>

Implementors§