pub struct ScopedGuard<'a, T>(/* private fields */);Available on crate feature
scoped-state only.Expand description
Access to a ScopedState’s value, from ScopedState::lock or
ScopedState::lock_unscoped.
A std::sync::MutexGuard underneath: do not hold it across an
.await.
Trait Implementations§
Source§impl<T: Debug> Debug for ScopedGuard<'_, T>
impl<T: Debug> Debug for ScopedGuard<'_, T>
Source§impl<T> Deref for ScopedGuard<'_, T>
impl<T> Deref for ScopedGuard<'_, T>
Auto Trait Implementations§
impl<'a, T> !Send for ScopedGuard<'a, T>
impl<'a, T> Forget for ScopedGuard<'a, T>
impl<'a, T> Freeze for ScopedGuard<'a, T>where
MutexGuard<'a, T>: Freeze,
impl<'a, T> Move for ScopedGuard<'a, T>
impl<'a, T> RefUnwindSafe for ScopedGuard<'a, T>where
MutexGuard<'a, T>: RefUnwindSafe,
impl<'a, T> Sync for ScopedGuard<'a, T>where
MutexGuard<'a, T>: Sync,
impl<'a, T> Unpin for ScopedGuard<'a, T>where
MutexGuard<'a, T>: Unpin,
impl<'a, T> UnsafeUnpin for ScopedGuard<'a, T>where
MutexGuard<'a, T>: UnsafeUnpin,
impl<'a, T> UnwindSafe for ScopedGuard<'a, T>where
MutexGuard<'a, 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