Struct cyfs_debug::Mutex
source · [−]pub struct Mutex<T> { /* private fields */ }Implementations
sourceimpl<T> ReenterCheckedMutex<T>
impl<T> ReenterCheckedMutex<T>
pub fn new(t: T) -> ReenterCheckedMutex<T>
sourceimpl<T> ReenterCheckedMutex<T>
impl<T> ReenterCheckedMutex<T>
pub fn lock(
&self
) -> Result<ReenterCheckedMutexGuard<'_, T>, PoisonError<MutexGuard<'_, T>>>
pub fn try_lock(
&self
) -> Result<ReenterCheckedMutexGuard<'_, T>, TryLockError<MutexGuard<'_, T>>>
pub fn is_poisoned(&self) -> bool
pub fn into_inner(self) -> LockResult<T> where
T: Sized,
pub fn get_mut(&mut self) -> LockResult<&mut T>
Auto Trait Implementations
impl<T> RefUnwindSafe for ReenterCheckedMutex<T>
impl<T> Send for ReenterCheckedMutex<T> where
T: Send,
impl<T> Sync for ReenterCheckedMutex<T> where
T: Send,
impl<T> Unpin for ReenterCheckedMutex<T> where
T: Unpin,
impl<T> UnwindSafe for ReenterCheckedMutex<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more