loom_core_actors

Trait Actor

Source
pub trait Actor {
    // Required methods
    fn start(&self) -> ActorResult;
    fn name(&self) -> &'static str;

    // Provided methods
    fn wait(&self, handles: ActorResult) -> Result<()> { ... }
    fn start_and_wait(&self) -> Result<()> { ... }
}

Required Methods§

Source

fn start(&self) -> ActorResult

Source

fn name(&self) -> &'static str

Provided Methods§

Source

fn wait(&self, handles: ActorResult) -> Result<()>

Source

fn start_and_wait(&self) -> Result<()>

Implementors§