Trait script::task::TaskBox

source ·
pub trait TaskBox: Send {
    // Required methods
    fn name(&self) -> &'static str;
    fn run_box(self: Box<Self>);
}
Expand description

A boxed version of TaskOnce.

Required Methods§

source

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

source

fn run_box(self: Box<Self>)

Trait Implementations§

source§

impl Debug for dyn TaskBox

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Traceable for Box<dyn TaskBox>

source§

unsafe fn trace(&self, _: *mut JSTracer)

Trace self.

Implementors§

source§

impl<T> TaskBox for T
where T: TaskOnce,