pub trait Actor<'a, A, M>: Send + 'static {
type Out: Into<Exit>;
type Fut: Future<Output = Self::Out> + Send + 'a;
// Required method
fn run(self, context: &'a mut Context<M>, args: A) -> Self::Fut;
}Expand description
A marker trait for actor behaviour function.
It is recommended to rely on the existing implementation of this trait for certain async-functions, rather than implementing this trait manually.