pub trait Task: 'static + Send {
// Required method
fn execute(&mut self, ctx: &mut ExecuteContext<impl Write>) -> Result<()>;
// Provided method
fn id(&self) -> String { ... }
}
Required Methods§
Provided Methods§
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.