Trait actix::registry::SystemService [−][src]
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 srtart 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
Implementors
impl SystemService for Resolver
impl SystemService for ProcessSignals