Crate actress [] [src]

Actress - a simple actor library for Rust

Traits

Actor

Trait required to be compatible as an actor

Functions

spawn

Spawns an actor with the given struct instance. Returns a channel Sender to communicate with the newly-spawned actor.

spawn_with_handle

Spawns an actor with the given struct instance. Returns a tuple of a channel Sender to communicate with the newly-spawned actor as well as a JoinHandle to later join the actor.