ConfigProxy

Trait ConfigProxy 

Source
pub trait ConfigProxy<TConfig>: Send + Sync {
    // Required methods
    fn read<'a, 'async_trait>(
        &'a self,
    ) -> Pin<Box<dyn Future<Output = Box<dyn ConfigReadProxy<TConfig> + 'a>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait;
    fn write<'a, 'async_trait>(
        &'a self,
    ) -> Pin<Box<dyn Future<Output = Box<dyn ConfigWriteProxy<TConfig> + 'a>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait;
}

Required Methods§

Source

fn read<'a, 'async_trait>( &'a self, ) -> Pin<Box<dyn Future<Output = Box<dyn ConfigReadProxy<TConfig> + 'a>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait,

Source

fn write<'a, 'async_trait>( &'a self, ) -> Pin<Box<dyn Future<Output = Box<dyn ConfigWriteProxy<TConfig> + 'a>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait,

Implementors§

Source§

impl<TConfig: Send + Sync> ConfigProxy<TConfig> for DirectProxy<TConfig>

Source§

impl<TRootConfig: Send + Sync, TConfig: Send, TPartialFn: Fn(&TRootConfig) -> &TConfig + Send + Sync, TPartialFnMut: Fn(&mut TRootConfig) -> &mut TConfig + Send + Sync> ConfigProxy<TConfig> for PartialProxy<TRootConfig, TConfig, TPartialFn, TPartialFnMut>