Skip to main content

ConfigApi

Trait ConfigApi 

Source
pub trait ConfigApi {
    type HotShotConfig: Serialize + Send + Sync + 'static;
    type RuntimeConfig: Serialize + Send + Sync + 'static;

    // Required methods
    fn hotshot_config<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Self::HotShotConfig>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn env<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn runtime_config<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Self::RuntimeConfig>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

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

Source

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

Source

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

Implementors§