pub trait TaskOnce: Send {
// Required method
fn run_once(self, cx: &mut JSContext);
// Provided method
fn name(&self) -> &'static str { ... }
}Expand description
A task that can be sent between threads and run. The name method is for profiling purposes.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".