Trait blockz::configuration::EasyConfiguration[][src]

pub trait EasyConfiguration {
    type Result: Send;
#[must_use]    fn load<'async_trait>(
    ) -> Pin<Box<dyn Future<Output = Self::Result> + Send + 'async_trait>>
    where
        Self: 'async_trait
; }
This is supported on crate feature configuration only.

An easy configuration is a configuration that can be loaded without other parameters.

Associated Types

type Result: Send[src]

The result type that can be produced by loading the configuration.

Loading content...

Required methods

#[must_use]fn load<'async_trait>(
) -> Pin<Box<dyn Future<Output = Self::Result> + Send + 'async_trait>> where
    Self: 'async_trait, 
[src]

Load the configuration.

Loading content...

Implementors

impl<C, O, R> EasyConfiguration for C where
    C: Configuration<Opts = O, Result = R>,
    O: Default + Send + 'static,
    R: Send + 'static, 
[src]

Automatically implement EasyConfiguration on Configuration implementations whose Opts type is Default.

type Result = R

Loading content...