Trait dioxus_html::prelude::Evaluator
source · pub trait Evaluator {
// Required methods
fn send(&self, data: Value) -> Result<(), EvalError>;
fn recv<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Value, EvalError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn join<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Value, EvalError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
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.