pub struct SemaphoreGuard<'a, T: Semaphore> { /* private fields */ }
Expand description
Semaphore guard
Increments(signal) semaphore on drop.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for SemaphoreGuard<'a, T>
impl<'a, T> RefUnwindSafe for SemaphoreGuard<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for SemaphoreGuard<'a, T>where
T: Sync,
impl<'a, T> Sync for SemaphoreGuard<'a, T>where
T: Sync,
impl<'a, T> Unpin for SemaphoreGuard<'a, T>
impl<'a, T> UnwindSafe for SemaphoreGuard<'a, T>where
T: RefUnwindSafe,
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