pub trait InspectTaskMut<T>: AsyncRun<T> {
// Required method
fn inspect_mut(&mut self, req: Request<'_>, state: Option<&mut T>);
}
Expand description
A trait for mutably inspecting a task and its associated state.
Required Methods§
Sourcefn inspect_mut(&mut self, req: Request<'_>, state: Option<&mut T>)
fn inspect_mut(&mut self, req: Request<'_>, state: Option<&mut T>)
Inspects the task and its state.
The state may be missing if it has not yet been inserted into the
TaskControl
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.