[][src]Trait xactor::Service

pub trait Service: Actor + Default {
    fn from_registry<'async_trait>(
    ) -> Pin<Box<dyn Future<Output = Addr<Self>> + Send + 'async_trait>>
    where
        Self: Send + 'async_trait
, { ... } }

Trait define a system service.

The system service is a global actor. You can use Actor::from_registry to get the address Addr<A> of the service.

Provided methods

fn from_registry<'async_trait>(
) -> Pin<Box<dyn Future<Output = Addr<Self>> + Send + 'async_trait>> where
    Self: Send + 'async_trait, 

Loading content...

Implementors

impl<T: Message<Result = ()>> Service for Broker<T>[src]

Loading content...