pub trait ManagerFactory: Send + Sync {
// Required method
fn create<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 WorkloadConfig,
) -> Pin<Box<dyn Future<Output = AppResult<Arc<dyn Manager>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Builds a Manager for a specific backend from workload config.
Provider-specific settings are captured inside the factory itself, keeping the shared config free of opaque provider data.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".