script::task

Trait TaskBox

Source
pub(crate) 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,