SubsystemFactory

Trait SubsystemFactory 

Source
pub trait SubsystemFactory<CT: CommandTransaction>: Send {
    // Required method
    fn create<'life0, 'async_trait>(
        self: Box<Self>,
        ioc: &'life0 IocContainer,
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn Subsystem>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided method
    fn provide_interceptors(
        &self,
        builder: StandardInterceptorBuilder<CT>,
        _ioc: &IocContainer,
    ) -> StandardInterceptorBuilder<CT> { ... }
}
Expand description

Factory trait for creating subsystems with IoC support

Required Methods§

Source

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

Provided Methods§

Implementors§