pub struct PoolGuard { /* private fields */ }Expand description
RAII guard representing an acquired pool slot.
Dropping the guard releases all held semaphore permits back to the pool.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PoolGuard
impl RefUnwindSafe for PoolGuard
impl Send for PoolGuard
impl Sync for PoolGuard
impl Unpin for PoolGuard
impl UnsafeUnpin for PoolGuard
impl UnwindSafe for PoolGuard
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