[][src]Trait napi::Task

pub trait Task: Send {
    type Output: Send + Sized + 'static;
    type JsValue: NapiValue;
    pub fn compute(&mut self) -> Result<Self::Output>;
pub fn resolve(
        self,
        env: Env,
        output: Self::Output
    ) -> Result<Self::JsValue>; }

Associated Types

Loading content...

Required methods

pub fn compute(&mut self) -> Result<Self::Output>[src]

pub fn resolve(self, env: Env, output: Self::Output) -> Result<Self::JsValue>[src]

Loading content...

Implementors

Loading content...