Trait concurrency_traits::mutex::TryMutex [−][src]
pub trait TryMutex<'a> { type Item: ?Sized; type Guard: DerefMut<Target = Self::Item>; fn try_lock(&'a self) -> Option<Self::Guard>; }
Expand description
A non-blocking mutex with try functions.
Implementation
It is recommended to implement TryMutexSized
if the implement-ee can be
sized.
Associated Types
Required methods
Implementations on Foreign Types
Implementors
impl<'a, T, M> TryMutex<'a> for CustomMutex<T, M> where
T: 'a,
M: RawTryMutex + 'a,
[src]
impl<'a, T, M> TryMutex<'a> for CustomMutex<T, M> where
T: 'a,
M: RawTryMutex + 'a,
[src]