Skip to main content

ActorStart

Trait ActorStart 

Source
pub trait ActorStart: Actor {
    // Provided methods
    fn start(self) -> ActorRef<Self> { ... }
    fn start_with_backend(self, backend: Backend) -> ActorRef<Self> { ... }
}
Expand description

Extension trait for starting an actor. Automatically implemented for all Actor types.

Provided Methods§

Source

fn start(self) -> ActorRef<Self>

Start the actor with the default backend (Backend::Async).

Source

fn start_with_backend(self, backend: Backend) -> ActorRef<Self>

Start the actor with a specific Backend.

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.

Implementors§

Source§

impl<A: Actor> ActorStart for A