[][src]Trait actix_web::actix::ArbiterService

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

Trait defines arbiter's service.

Provided methods

fn start_service() -> Addr<Self>

Construct and start arbiter service

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

Method is called during service initialization.

fn from_registry() -> Addr<Self>

Get actor's address from arbiter registry

Loading content...

Implementors

impl<T> ArbiterService for Mocker<T> where
    T: ArbiterService
[src]

fn start_service() -> Addr<Self>[src]

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

fn from_registry() -> Addr<Self>[src]

Loading content...