Trait nj_core::NjFutureExt

source ·
pub trait NjFutureExt: Future {
    // Provided method
    fn try_to_js(self, js_env: &JsEnv) -> Result<napi_value, NjError>
       where Self: Sized + Send + 'static,
             Self::Output: TryIntoJs { ... }
}

Provided Methods§

source

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

Implementors§

source§

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