Skip to main content

Factory

Trait Factory 

Source
pub trait Factory<T: Value> {
    // Required method
    fn create(&self, name: &str) -> Result<T, Error>;
}
Expand description

Defines the behavior of a configuration options factory.

Required Methods§

Source

fn create(&self, name: &str) -> Result<T, Error>

Creates and returns new configuration options.

§Arguments
  • name - The optional name of the configuration options to create

Implementors§