pub type BackendFactory = Box<dyn Fn(String, &BackendConfig) -> Result<Box<dyn Backend>, BackendError> + Send + Sync>;Expand description
A closure that creates a concrete backend from its name and config.
This is the bridge between rite-runtime (which defines the
registry) and rite-stdlib (which provides the concrete
implementations). The CLI injects rite_stdlib::backend::create_backend
as this closure.
Aliased Typeยง
pub struct BackendFactory(/* private fields */);