Skip to main content

ProviderFactory

Type Alias ProviderFactory 

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

Function that constructs a fresh provider for each child. Needed because Provider trait objects aren’t cloneable — each delegated child needs its own provider instance.

Aliased Type§

pub struct ProviderFactory { /* private fields */ }