pub trait DiFactory<T, Args>: DiFactoryOnce<T, Args> {
// Required method
fn produce(&self, services: &Services) -> Result<T, Error>;
}Expand description
Represents an object that’s capable of building T from a DI instance.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".