pub trait ConfigProvider: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn resolve<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ResolvedValue, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn resolve_sync(&self) -> Result<ResolvedValue, Error> { ... }
}Expand description
A trait for providing configuration values dynamically.
Required Methods§
Provided Methods§
Sourcefn resolve_sync(&self) -> Result<ResolvedValue, Error>
fn resolve_sync(&self) -> Result<ResolvedValue, Error>
Resolves the configuration value synchronously.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".