struct BootingResetGuard<'a> {
state: &'a Arc<ServerState>,
armed: bool,
}Expand description
RAII guard resetting a Booting slot back to Empty if a respawn future is dropped before reaching
a terminal state (R5 cancellation-safety). Drop cannot await, so it uses a sync try_lock; on
contention it detaches a cleanup task. Idempotent: only resets if the slot is still Booting.
Fields§
§state: &'a Arc<ServerState>§armed: boolImplementations§
Source§impl<'a> BootingResetGuard<'a>
impl<'a> BootingResetGuard<'a>
Trait Implementations§
Source§impl Drop for BootingResetGuard<'_>
impl Drop for BootingResetGuard<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for BootingResetGuard<'a>
impl<'a> !UnwindSafe for BootingResetGuard<'a>
impl<'a> Freeze for BootingResetGuard<'a>
impl<'a> Send for BootingResetGuard<'a>
impl<'a> Sync for BootingResetGuard<'a>
impl<'a> Unpin for BootingResetGuard<'a>
impl<'a> UnsafeUnpin for BootingResetGuard<'a>
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