pub trait Evaluator {
// Required methods
fn send(&self, data: Value) -> Result<(), EvalError>;
fn poll_recv(
&mut self,
context: &mut Context<'_>,
) -> Poll<Result<Value, EvalError>>;
fn poll_join(
&mut self,
context: &mut Context<'_>,
) -> Poll<Result<Value, EvalError>>;
}Expand description
The platform’s evaluator.
Required Methods§
Sourcefn send(&self, data: Value) -> Result<(), EvalError>
fn send(&self, data: Value) -> Result<(), EvalError>
Sends a message to the evaluated JavaScript.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".