[][src]Trait aerosol::Factory

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.

Associated Types

type Object

Loading content...

Required methods

fn build(args: Args) -> Result<Self::Object, Error>

Loading content...

Implementors

Loading content...