ConfigSource

Trait ConfigSource 

Source
pub trait ConfigSource: Send + Sync {
    // Required method
    fn load<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Gateway, ExtensionsError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Swappable configuration origin.

Required Methods§

Source

fn load<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Gateway, ExtensionsError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Load the current configuration generation.

Implementors§