pub trait EngineLink {
// Required methods
fn send(&mut self, message: ClientMessage);
fn receive(&mut self) -> Vec<ServerMessage>;
// Provided methods
fn is_remote(&self) -> bool { ... }
fn is_open(&self) -> bool { ... }
fn target(&self) -> Option<String> { ... }
}Expand description
How messages reach the engine and come back.
Required Methods§
fn send(&mut self, message: ClientMessage)
Sourcefn receive(&mut self) -> Vec<ServerMessage>
fn receive(&mut self) -> Vec<ServerMessage>
The messages that arrived since the last call.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".