Trait rosey_actors::prelude::EventfulActor [−][src]
pub trait EventfulActor {
fn start<'life0, 'async_trait>(
&'life0 mut self,
ctx: Ctx
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn stop<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn handle_message<'a>(
&'a mut self,
ctx: Ctx,
msg: BoxedMessage
) -> Pin<Box<dyn Future<Output = Result<(), ActorError>> + Send + Sync + 'a>>;
}