pub trait Transport {
// Required methods
fn send(&mut self, message: &Message) -> Result<()>;
fn recv(&mut self) -> Result<Option<Message>>;
}Expand description
Something that carries messages to the other peer and back.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".