Trait NjFutureExt

Source
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§

Source

fn try_to_js(self, js_env: &JsEnv) -> Result<*mut napi_value__, NjError>
where Self: Sized + Send + 'static, Self::Output: TryIntoJs,

Implementors§

Source§

impl<T> NjFutureExt for T
where T: Future + ?Sized,