[][src]Trait actix::registry::SystemService

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

Trait defines system's service.

Provided methods

fn start_service(sys: &Arbiter) -> Addr<Self>

Construct and start system 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 system registry

Loading content...

Implementors

impl SystemService for Resolver[src]

impl<T: SystemService> SystemService for Mocker<T>[src]

Loading content...