pub trait Transport {
// Required methods
fn receive(&mut self) -> Result<Option<Incoming>, String>;
fn send(&mut self, message: &str) -> Result<(), String>;
}Expand description
Where messages come from and go to.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".