pub trait Connection {
// Required methods
fn send(&mut self, msg: ClientMsg);
fn try_recv(&mut self) -> Option<ServerMsg>;
}Expand description
A client’s link to an engine, in-process or over a WebSocket. Never blocks.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".