Trait stam::Configurable
source · pub trait Configurable: Sized {
// Required methods
fn config(&self) -> &Config;
fn config_mut(&mut self) -> &mut Config;
fn set_config(&mut self, config: Config) -> &mut Self;
// Provided method
fn with_config(self, config: Config) -> Self { ... }
}Required Methods§
fn config(&self) -> &Config
fn config_mut(&mut self) -> &mut Config
sourcefn set_config(&mut self, config: Config) -> &mut Self
fn set_config(&mut self, config: Config) -> &mut Self
Setter to associate a configuration
Provided Methods§
sourcefn with_config(self, config: Config) -> Self
fn with_config(self, config: Config) -> Self
Builder pattern to associate a configuration