pub type TenantExecutorFactory<A> = Arc<dyn Fn(String, TenantPoolConfig) -> Pin<Box<dyn Future<Output = Result<Arc<Executor<A>>>> + Send>> + Send + Sync>;Expand description
Type-erased async factory for creating tenant executors.
Stored in AppState so that the management API handler (upsert_tenant_handler)
can build an Executor<A> without requiring A: FromPoolConfig as a bound on
the route handler or the Server<A> impl. The factory is set once at server
startup by code that knows the concrete adapter type.
Aliased Typeยง
pub struct TenantExecutorFactory<A> { /* private fields */ }