Skip to main content

ServiceFactoryFn

Type Alias ServiceFactoryFn 

Source
pub type ServiceFactoryFn = fn(&ServiceContext) -> Result<Box<dyn Spawnable>>;
Expand description

Factory function signature for creating services.

Takes a ServiceContext and returns a boxed Spawnable service.