Skip to main content

AdapterFactory

Type Alias AdapterFactory 

Source
pub type AdapterFactory = Arc<dyn Fn() -> Box<dyn Any + Send + Sync> + Send + Sync>;
Expand description

Factory that builds a type-erased adapter instance.

External (test / third-party) adapters register one of these via AdapterRegistry::register. The returned Box<dyn Any + Send + Sync> is downcast by the caller to the stage trait object they need.

Aliased Type§

pub struct AdapterFactory { /* private fields */ }