pub trait MessageTransport {
// Required methods
fn send(
&mut self,
message: &[u8],
) -> impl Future<Output = Result<()>> + Send;
fn recv(&mut self) -> impl Future<Output = Result<Vec<u8>>> + Send;
}Expand description
An asynchronous transport of whole messages.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".