Trait wactor::Actor [−][src]
Actors run on isolated green threads. The cannot share memory, and communicate only through input and output messages. Consequently messages must be serialized to travel between threads.
Associated Types
type Input: Serialize + DeserializeOwned
[src]
type Output: Serialize + DeserializeOwned
[src]
Required methods
fn create() -> Self
[src]
Create this actor.
fn handle(&mut self, msg: Self::Input, link: &Link<Self>)
[src]
Handle an input message.