pub trait DiFactoryOnce<T, Args>: 'static {
// Required methods
fn depends_on() -> &'static [TypeMeta];
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§
fn depends_on() -> &'static [TypeMeta]
fn produce(self, services: &Services) -> Result<T, Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".