Trait Factory
aerosol
pub trait Factory<Args = ()> { type Object; fn build(args: Args) -> Result<Self::Object, Error>; }
Implement this trait to provide a convenient syntax for constructing implementations of dependencies.
type Object
fn build(args: Args) -> Result<Self::Object, Error>