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§
Sourcefn start(self) -> ActorRef<Self>
fn start(self) -> ActorRef<Self>
Start the actor with the default backend (Backend::Async).
Sourcefn start_with_backend(self, backend: Backend) -> ActorRef<Self>
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.