pub trait Actor:
Sized
+ Send
+ 'static {
type MessageGroup: MessageGroup;
// Required method
fn handle_all<'life0, 'async_trait>(
&'life0 mut self,
msg: Self::MessageGroup,
) -> Pin<Box<dyn Future<Output = <Self::MessageGroup as MessageGroup>::ReplyGroup> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn start(self) -> ActorHandle<Self> { ... }
}Required Associated Types§
Required Methods§
fn handle_all<'life0, 'async_trait>(
&'life0 mut self,
msg: Self::MessageGroup,
) -> Pin<Box<dyn Future<Output = <Self::MessageGroup as MessageGroup>::ReplyGroup> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provided Methods§
fn start(self) -> ActorHandle<Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.