Trait actix::registry::SystemService [−][src]
pub trait SystemService: Actor<Context = Context<Self>> + Supervised + Default { fn start_service(wrk: &ArbiterHandle) -> Addr<Self> { ... } fn service_started(&mut self, ctx: &mut Context<Self>) { ... } fn from_registry() -> Addr<Self> { ... } }
Expand description
Trait defines system’s service.
Provided methods
fn start_service(wrk: &ArbiterHandle) -> Addr<Self>
[src]
fn start_service(wrk: &ArbiterHandle) -> Addr<Self>
[src]Construct and start system service
fn service_started(&mut self, ctx: &mut Context<Self>)
[src]
fn service_started(&mut self, ctx: &mut Context<Self>)
[src]Method is called during service initialization.
fn from_registry() -> Addr<Self>
[src]
fn from_registry() -> Addr<Self>
[src]Get actor’s address from system registry