[][src]Trait actix_web::actix::SystemService

pub trait SystemService: Actor<Context = Context<Self>> + Supervised + Default {
    fn start_service(sys: &Addr<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: &Addr<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]

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

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

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

impl SystemService for ProcessSignals[src]

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

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

impl SystemService for ClientConnector[src]

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

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

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

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

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

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

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

Loading content...