Struct ast_grep_napi::IterateFiles
source · pub struct IterateFiles<D> { /* private fields */ }
Trait Implementations§
source§impl<T: 'static + Send + Sync> Task for IterateFiles<T>
impl<T: 'static + Send + Sync> Task for IterateFiles<T>
type Output = u32
type JsValue = JsNumber
source§fn resolve(&mut self, env: Env, output: Self::Output) -> Result<Self::JsValue>
fn resolve(&mut self, env: Env, output: Self::Output) -> Result<Self::JsValue>
Into this method if
compute
return Ok
source§fn reject(&mut self, _env: Env, err: Error) -> Result<Self::JsValue, Error>
fn reject(&mut self, _env: Env, err: Error) -> Result<Self::JsValue, Error>
Into this method if
compute
return Err