Trait blockz::configuration::Configuration [−][src]
This is supported on crate feature
configuration
only.Common behaviour of configurations.
Associated Types
type Opts: Send
[src]
The type of options container this Configuration accepts for the purpose of loading the configuration.
type Result: Send
[src]
The result type that can be produced by loading the configuration.
Required methods
#[must_use]fn load<'async_trait>(
opts: Self::Opts
) -> Pin<Box<dyn Future<Output = Self::Result> + Send + 'async_trait>> where
Self: 'async_trait,
[src]
opts: Self::Opts
) -> Pin<Box<dyn Future<Output = Self::Result> + Send + 'async_trait>> where
Self: 'async_trait,
Load the configuration.
Implementors
impl<T> Configuration for DirectConfiguration<T> where
T: Send,
[src]
T: Send,
type Opts = T
type Result = T
fn load<'async_trait>(
opts: Self::Opts
) -> Pin<Box<dyn Future<Output = Self::Result> + Send + 'async_trait>> where
Self: 'async_trait,
[src]
opts: Self::Opts
) -> Pin<Box<dyn Future<Output = Self::Result> + Send + 'async_trait>> where
Self: 'async_trait,
impl<T> Configuration for EnvConfiguration<T> where
T: for<'de> Deserialize<'de> + Send,
[src]
T: for<'de> Deserialize<'de> + Send,
This is supported on crate feature
env_configuration
only.