script::task

Trait TaskOnce

source
pub(crate) 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.

Required Methods§

Provided Methods§

source

fn name(&self) -> &'static str

Implementors§