pub struct MutexLocker<T> { /* private fields */ }
Implementations§
Source§impl<T> MutexLocker<T>
impl<T> MutexLocker<T>
Sourcepub async fn acquire(&mut self) -> Option<MutexGuard<'_, T>>
pub async fn acquire(&mut self) -> Option<MutexGuard<'_, T>>
Returns None if either the corresponding Granter or the OrchestratorMutex has been dropped.
pub fn try_acquire(&mut self) -> Result<MutexGuard<'_, T>, TryAcquireError>
Auto Trait Implementations§
impl<T> Freeze for MutexLocker<T>
impl<T> RefUnwindSafe for MutexLocker<T>
impl<T> Send for MutexLocker<T>where
T: Send,
impl<T> Sync for MutexLocker<T>where
T: Send,
impl<T> Unpin for MutexLocker<T>
impl<T> UnwindSafe for MutexLocker<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