pub trait AsyncReadMsg {
// Required method
fn read_msg<M: Message + Default>(
&mut self,
) -> impl Future<Output = Result<M>> + Send + Sync;
}Available on crate feature
async only.Expand description
Read the given Protobuf message from the underlying I/O object (async).
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.