pub struct SafeMutex<T> { /* private fields */ }Expand description
A mutex wrapper that automatically recovers from poison errors
Implementations§
Auto Trait Implementations§
impl<T> !Freeze for SafeMutex<T>
impl<T> RefUnwindSafe for SafeMutex<T>
impl<T> Send for SafeMutex<T>where
T: Send,
impl<T> Sync for SafeMutex<T>where
T: Send,
impl<T> Unpin for SafeMutex<T>where
T: Unpin,
impl<T> UnwindSafe for SafeMutex<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Inspectable for T
impl<T> Inspectable for T
Source§fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
Conditionally inspect this value
Source§fn inspect_with<F>(self, label: &str, f: F) -> Self
fn inspect_with<F>(self, label: &str, f: F) -> Self
Inspect with a custom formatter