Type Definition shuttle_service::StateBuilder
source · [−]pub type StateBuilder<T> = for<'a> fn(_: &'a mut dyn Factory, _: &'a Runtime, _: Logger) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'a>>;
Expand description
This function is generated by our codegen. It uses the factory to get other services and instantiate them on
the correct tokio runtime. This function also sets the runtime logger. The output is a future where T
should implement Service.