pub struct ConcurrencyGuard(/* private fields */);Expand description
A held slot against a try_acquire concurrency gauge. Decrements the
gauge on drop (including an early return, a panic-unwind, or the normal
end of a background task’s future) so a completed spawn always releases
its slot — no separate “remember to release” call site to forget.
Trait Implementations§
Source§impl Drop for ConcurrencyGuard
impl Drop for ConcurrencyGuard
Auto Trait Implementations§
impl Freeze for ConcurrencyGuard
impl RefUnwindSafe for ConcurrencyGuard
impl Send for ConcurrencyGuard
impl Sync for ConcurrencyGuard
impl Unpin for ConcurrencyGuard
impl UnsafeUnpin for ConcurrencyGuard
impl UnwindSafe for ConcurrencyGuard
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