pub struct TracedAsyncMutex<T> { /* private fields */ }Expand description
A Tokio-based async mutex whose acquisitions are recorded as tracing spans.
Each lock is identified by a static name, recorded as the lock field on the
utils.mutex.lock span so wait time is attributable to a specific lock.
Implementations§
Source§impl<T> TracedAsyncMutex<T>
impl<T> TracedAsyncMutex<T>
Auto Trait Implementations§
impl<T> !Freeze for TracedAsyncMutex<T>
impl<T> !RefUnwindSafe for TracedAsyncMutex<T>
impl<T> Send for TracedAsyncMutex<T>where
T: Send,
impl<T> Sync for TracedAsyncMutex<T>where
T: Send,
impl<T> Unpin for TracedAsyncMutex<T>where
T: Unpin,
impl<T> UnsafeUnpin for TracedAsyncMutex<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for TracedAsyncMutex<T>where
T: UnwindSafe,
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