Trait Actor
meio
pub trait Actor: Sized + Send + 'static { type GroupBy: Clone + Send + Eq + Hash; fn name(&self) -> String { ... } }
The main trait. Your structs have to implement it to be compatible with ActorRuntime and Address system.
ActorRuntime
Address
Recommended to implement reactive activities.
type GroupBy: Clone + Send + Eq + Hash
Specifies how to group child actors.
fn name(&self) -> String
Returns unique name of the Actor. Uses Uuid by default.
Actor
Uuid
impl Actor for System
type GroupBy = ()