AsyncReadMsg

Trait AsyncReadMsg 

Source
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§

Source

fn read_msg<M: Message + Default>( &mut self, ) -> impl Future<Output = Result<M>> + Send + Sync

Read from the underlying I/O object, decrypting the data and decoding it into the given Protobuf message.

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.

Implementors§