pub struct SemaphoreGuard<'guard> { /* private fields */ }
Expand description
A guard for a Semaphore Increments the count on creation Decrements it on Drop
Trait Implementations§
Source§impl<'guard> Drop for SemaphoreGuard<'guard>
impl<'guard> Drop for SemaphoreGuard<'guard>
impl<'guard> !Send for SemaphoreGuard<'guard>
impl<'guard> Sync for SemaphoreGuard<'guard>
Auto Trait Implementations§
impl<'guard> Freeze for SemaphoreGuard<'guard>
impl<'guard> RefUnwindSafe for SemaphoreGuard<'guard>
impl<'guard> Unpin for SemaphoreGuard<'guard>
impl<'guard> UnwindSafe for SemaphoreGuard<'guard>
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