pub(crate) trait NonSendTaskOnce: Traceable {
// Required method
fn run_once(self, cx: &mut JSContext);
}Expand description
A task that must be run on the same thread it originated in.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".