[−][src]Trait xtra::AsyncHandler
A trait indicating that an Actor can handle a given Message
asynchronously, and the logic to handle the message.
Associated Types
Loading content...Required methods
fn handle<'a>(
&'a mut self,
message: M,
ctx: &'a mut Context<Self>
) -> Self::Responder
&'a mut self,
message: M,
ctx: &'a mut Context<Self>
) -> Self::Responder
Handle a given message, returning a future eventually resolving to its result.