pub trait TaskOnce: Send {
// Required method
fn run_once(self);
// Provided method
fn name(&self) -> &'static str { ... }
}
Expand description
A task that can be run. The name method is for profiling purposes.
pub trait TaskOnce: Send {
// Required method
fn run_once(self);
// Provided method
fn name(&self) -> &'static str { ... }
}
A task that can be run. The name method is for profiling purposes.