Trait hannibal::LocalService
source · pub trait LocalService: Actor + Default {
// Provided method
fn from_registry() -> impl Future<Output = Result<Addr<Self>>> + Send { ... }
}
Expand description
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§
Object Safety§
This trait is not object safe.