Trait actix_telepathy::CustomSystemService[][src]

pub trait CustomSystemService: Actor<Context = Context<Self>> + SystemService {
    fn start_service_with(
        f: impl Fn() -> Self + Sync + 'static + Send
    ) -> Addr<Self> { ... }
fn custom_service_started(&mut self, ctx: &mut Context<Self>) { ... }
fn add_to_registry(addr: Addr<Self>) -> Addr<Self> { ... }
fn from_custom_registry() -> Addr<Self> { ... } }

Trait defines custom system’s service.

Provided methods

fn start_service_with(
    f: impl Fn() -> Self + Sync + 'static + Send
) -> Addr<Self>
[src]

Construct and start system service with arguments

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

fn add_to_registry(addr: Addr<Self>) -> Addr<Self>[src]

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

Get actor’s address from system registry

Loading content...

Implementors

Loading content...