pub struct SpawnPermit { /* private fields */ }Expand description
RAII permit for one in-flight spawn. Frees the slot on drop. Hold it
ONLY for the duration of the boot (a local in spawn_one), so the gate
caps concurrent boots, not running VMs. held == false when the gate
is disabled — a zero-cost no-op permit.
Implementations§
Trait Implementations§
Source§impl Debug for SpawnPermit
impl Debug for SpawnPermit
Source§impl Drop for SpawnPermit
impl Drop for SpawnPermit
Auto Trait Implementations§
impl Freeze for SpawnPermit
impl RefUnwindSafe for SpawnPermit
impl Send for SpawnPermit
impl Sync for SpawnPermit
impl Unpin for SpawnPermit
impl UnsafeUnpin for SpawnPermit
impl UnwindSafe for SpawnPermit
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