pub trait NjFutureExt: Future {
// Provided method
fn try_to_js(self, js_env: &JsEnv) -> Result<*mut napi_value__, NjError>
where Self: Sized + Send + 'static,
Self::Output: TryIntoJs { ... }
}Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".