pub enum RuntimeCommand {
Shutdown,
Emergency,
ScheduleTask(Task),
}Expand description
Commands that can be sent to the runtime.
Used for external control of the runtime lifecycle.
Variants§
Shutdown
Request graceful shutdown.
Emergency
Request emergency stop (panic recovery).
ScheduleTask(Task)
Schedule a task for execution.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuntimeCommand
impl !RefUnwindSafe for RuntimeCommand
impl Send for RuntimeCommand
impl !Sync for RuntimeCommand
impl Unpin for RuntimeCommand
impl UnsafeUnpin for RuntimeCommand
impl !UnwindSafe for RuntimeCommand
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