pub trait Route<M>: Send + Sync + DynClone {
fn try_send_msg<'life0, 'async_trait>(
&'life0 self,
message: M
) -> Pin<Box<dyn Future<Output = Result<Option<M>>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn send_msg<'life0, 'async_trait>(
&'life0 self,
message: M
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Dynamic route as trait object, should be implemented on the actor’s handle
Required Methods
Try to send message to the channel.