Skip to main content

Module

Trait Module 

Source
pub trait Module:
    Send
    + Sync
    + 'static {
    // Required method
    fn init<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ctx: &'life1 ModuleCtx,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Core module: DI/wiring; do not rely on migrated schema here.

Required Methods§

Source

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

Implementors§