pub struct RunContext {
pub shutdown: ShutdownToken,
pub tasks: TaskRegistry,
}Expand description
Context passed to run. Differs from StartContext only in that it
owns a TaskRegistry (spawning from inside run is the common case).
Fields§
§shutdown: ShutdownTokenShutdown token. Await .cancelled() to notice shutdown.
tasks: TaskRegistryTask registry.
Auto Trait Implementations§
impl Freeze for RunContext
impl !RefUnwindSafe for RunContext
impl Send for RunContext
impl Sync for RunContext
impl Unpin for RunContext
impl UnsafeUnpin for RunContext
impl !UnwindSafe for RunContext
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