Struct concurrency_traits::mutex::CustomMutex [−][src]
pub struct CustomMutex<T, M: ?Sized> { /* fields omitted */ }
Expand description
A Mutex based on a given RawTryMutex
Implementations
impl<T, M> CustomMutex<T, M>
[src]
impl<T, M> CustomMutex<T, M>
[src]Trait Implementations
impl<'a, T, M> AsyncMutex<'a> for CustomMutex<T, M> where
T: 'a + Send,
M: RawAsyncMutex + 'a + Send + Sync,
[src]
impl<'a, T, M> AsyncMutex<'a> for CustomMutex<T, M> where
T: 'a + Send,
M: RawAsyncMutex + 'a + Send + Sync,
[src]impl<'a, T, M> AsyncTimeoutMutex<'a> for CustomMutex<T, M> where
T: 'a + Send,
M: RawAsyncTimeoutMutex + 'a + Send + Sync,
[src]
impl<'a, T, M> AsyncTimeoutMutex<'a> for CustomMutex<T, M> where
T: 'a + Send,
M: RawAsyncTimeoutMutex + 'a + Send + Sync,
[src]impl<T, M> Default for CustomMutex<T, M> where
T: Default,
M: Default,
[src]
impl<T, M> Default for CustomMutex<T, M> where
T: Default,
M: Default,
[src]impl<T, M> From<T> for CustomMutex<T, M> where
M: Default,
[src]
impl<T, M> From<T> for CustomMutex<T, M> where
M: Default,
[src]impl<'a, T, M> Mutex<'a> for CustomMutex<T, M> where
T: 'a,
M: RawMutex + 'a,
[src]
impl<'a, T, M> Mutex<'a> for CustomMutex<T, M> where
T: 'a,
M: RawMutex + 'a,
[src]impl<'a, T, M> MutexSized<'a> for CustomMutex<T, M> where
T: 'a,
M: RawMutex + 'a,
[src]
impl<'a, T, M> MutexSized<'a> for CustomMutex<T, M> where
T: 'a,
M: RawMutex + 'a,
[src]impl<'a, T, M> TimeoutMutex<'a> for CustomMutex<T, M> where
T: 'a,
M: RawTimeoutMutex + 'a,
[src]
impl<'a, T, M> TimeoutMutex<'a> for CustomMutex<T, M> where
T: 'a,
M: RawTimeoutMutex + 'a,
[src]fn lock_timeout(&'a self, timeout: Duration) -> Option<Self::Guard>
[src]
fn lock_timeout(&'a self, timeout: Duration) -> Option<Self::Guard>
[src]Locks the mutex blocking for timeout or until locked
impl<'a, T, M> TimeoutMutexSized<'a> for CustomMutex<T, M> where
T: 'a,
M: RawTimeoutMutex + 'a,
[src]
impl<'a, T, M> TimeoutMutexSized<'a> for CustomMutex<T, M> where
T: 'a,
M: RawTimeoutMutex + 'a,
[src]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]impl<'a, T, M> TryMutexSized<'a> for CustomMutex<T, M> where
T: 'a,
M: RawTryMutex + 'a,
[src]
impl<'a, T, M> TryMutexSized<'a> for CustomMutex<T, M> where
T: 'a,
M: RawTryMutex + 'a,
[src]impl<T, M> Sync for CustomMutex<T, M> where
T: Send,
M: Sync,
[src]
T: Send,
M: Sync,
Auto Trait Implementations
impl<T, M> !RefUnwindSafe for CustomMutex<T, M>
impl<T, M: ?Sized> Send for CustomMutex<T, M> where
M: Send,
T: Send,
M: Send,
T: Send,
impl<T, M: ?Sized> Unpin for CustomMutex<T, M> where
M: Unpin,
T: Unpin,
M: Unpin,
T: Unpin,
impl<T, M: ?Sized> UnwindSafe for CustomMutex<T, M> where
M: UnwindSafe,
T: UnwindSafe,
M: UnwindSafe,
T: UnwindSafe,