pub struct ReenterCheckedMutex<T> { /* private fields */ }Implementations§
Source§impl<T> ReenterCheckedMutex<T>
impl<T> ReenterCheckedMutex<T>
pub fn new(t: T) -> ReenterCheckedMutex<T>
Source§impl<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> !Freeze for ReenterCheckedMutex<T>
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§
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more