pub trait ConfigRegistry {
// Required method
fn get_config<T>(&self) -> Result<T>
where T: DeserializeOwned + Configurable;
}
Expand description
ConfigRegistry is the core trait of configuration management
Required Methods§
Sourcefn get_config<T>(&self) -> Result<T>where
T: DeserializeOwned + Configurable,
fn get_config<T>(&self) -> Result<T>where
T: DeserializeOwned + Configurable,
Get the configuration items according to the Configurable’s config_prefix
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.