[][src]Trait xactor::LocalService

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

Trait define a local service.

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

Provided methods

#[must_use]pub fn from_registry<'async_trait>(
) -> Pin<Box<dyn Future<Output = Result<Addr<Self>>> + Send + 'async_trait>> where
    Self: Send + 'async_trait, 
[src]

Loading content...

Implementors

Loading content...