pub struct StopContext<'a> {
pub shutdown: ShutdownToken,
pub tasks: &'a TaskRegistry,
pub exit_reason: ExitReason,
}Expand description
Context passed to on_stop / post_stop.
Fields§
§shutdown: ShutdownTokenShutdown token.
tasks: &'a TaskRegistryTask registry (for inspection).
exit_reason: ExitReasonThe reason the service is exiting.
Auto Trait Implementations§
impl<'a> Freeze for StopContext<'a>
impl<'a> !RefUnwindSafe for StopContext<'a>
impl<'a> Send for StopContext<'a>
impl<'a> Sync for StopContext<'a>
impl<'a> Unpin for StopContext<'a>
impl<'a> UnsafeUnpin for StopContext<'a>
impl<'a> !UnwindSafe for StopContext<'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