struct GroupGuard<'a> {
group: &'a GutexGroup,
phantom: PhantomData<Rc<()>>,
}Expand description
An RAII object used to release the lock on GutexGroup. This type cannot be send because it
will cause data race on the group when dropping if more than one GroupGuard are active.
Fields§
§group: &'a GutexGroup§phantom: PhantomData<Rc<()>>Implementations§
Source§impl<'a> GroupGuard<'a>
impl<'a> GroupGuard<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for GroupGuard<'a>
impl<'a> !RefUnwindSafe for GroupGuard<'a>
impl<'a> !Send for GroupGuard<'a>
impl<'a> !Sync for GroupGuard<'a>
impl<'a> Unpin for GroupGuard<'a>
impl<'a> !UnwindSafe for GroupGuard<'a>
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