pub struct SafeGuard<'a, T> { /* private fields */ }Expand description
Guard for SafeMutex that tracks if recovery occurred
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for SafeGuard<'a, T>
impl<'a, T> RefUnwindSafe for SafeGuard<'a, T>
impl<'a, T> !Send for SafeGuard<'a, T>
impl<'a, T> Sync for SafeGuard<'a, T>where
T: Sync,
impl<'a, T> Unpin for SafeGuard<'a, T>
impl<'a, T> UnwindSafe for SafeGuard<'a, 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