pub struct DecideTask { /* private fields */ }Expand description
The off-thread half of Engine::decide.
Trait Implementations§
Source§impl Task for DecideTask
impl Task for DecideTask
type Output = String
type JsValue = String
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 OkSource§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 Errfn finally(&mut self, _env: Env) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for DecideTask
impl RefUnwindSafe for DecideTask
impl Send for DecideTask
impl Sync for DecideTask
impl Unpin for DecideTask
impl UnsafeUnpin for DecideTask
impl UnwindSafe for DecideTask
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more