pub struct Held { /* private fields */ }Expand description
A held permit, released when dropped.
Released on drop rather than by a call, because every early return in
a run is a place a release would be forgotten — and a leaked permit is
invisible until the pool is full, at which point the symptom is that
nothing starts and nothing says why. The Drop still cannot run on a
SIGKILL, which is what the pid check is for: the next caller reclaims it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Held
impl RefUnwindSafe for Held
impl Send for Held
impl Sync for Held
impl Unpin for Held
impl UnsafeUnpin for Held
impl UnwindSafe for Held
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