pub trait ClientMsgHandler: Send + Sync {
// Required method
fn handle_msg<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
client: &'life1 SteamClient,
packet_msg: &'life2 dyn IPacketMsg,
) -> Pin<Box<dyn Future<Output = SteamResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
A message handler. It gets the incoming messages it cares about and replies
through the SteamClient.
Required Methods§
Sourcefn handle_msg<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
client: &'life1 SteamClient,
packet_msg: &'life2 dyn IPacketMsg,
) -> Pin<Box<dyn Future<Output = SteamResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn handle_msg<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
client: &'life1 SteamClient,
packet_msg: &'life2 dyn IPacketMsg,
) -> Pin<Box<dyn Future<Output = SteamResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Handles a client message. Called by the client; don’t call it yourself.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".