pub trait LoadServiceConfig:
Debug
+ Send
+ Sync {
// Required method
fn load_config(&self, key: ServiceConfigKey<'_>) -> Option<String>;
}Expand description
Implementers of this trait can provide service config defined in a user’s environment.
Required Methods§
Sourcefn load_config(&self, key: ServiceConfigKey<'_>) -> Option<String>
fn load_config(&self, key: ServiceConfigKey<'_>) -> Option<String>
Given a ServiceConfigKey, return the value associated with it.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".