actix::registry

Trait ArbiterService

Source
pub trait ArbiterService:
    Actor<Context = Context<Self>>
    + Supervised
    + Default {
    // Provided methods
    fn start_service() -> Addr<Self> { ... }
    fn service_started(&mut self, ctx: &mut Context<Self>) { ... }
    fn from_registry() -> Addr<Self> { ... }
}
Expand description

Trait defines arbiter’s service.

Provided Methods§

Source

fn start_service() -> Addr<Self>

Construct and start arbiter service

Source

fn service_started(&mut self, ctx: &mut Context<Self>)

Method is called during service initialization.

Source

fn from_registry() -> Addr<Self>

Get actor’s address from arbiter registry

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§