pub struct SemaphoreReleaser<'a, S: Semaphore> { /* private fields */ }
Expand description
A representation of a number of acquired permits.
The acquired permits will be released back to the Semaphore
when this is dropped.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, S> Freeze for SemaphoreReleaser<'a, S>
impl<'a, S> RefUnwindSafe for SemaphoreReleaser<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for SemaphoreReleaser<'a, S>where
S: Sync,
impl<'a, S> Sync for SemaphoreReleaser<'a, S>where
S: Sync,
impl<'a, S> Unpin for SemaphoreReleaser<'a, S>
impl<'a, S> UnwindSafe for SemaphoreReleaser<'a, S>where
S: 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