spin_factors_executor

Trait ExecutorHooks

Source
pub trait ExecutorHooks<T, U>: Send + Sync
where T: RuntimeFactors,
{ // Provided methods fn configure_app<'life0, 'life1, 'async_trait>( &'life0 self, configured_app: &'life1 ConfiguredApp<T>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait { ... } fn prepare_instance( &self, builder: &mut FactorsInstanceBuilder<'_, T, U>, ) -> Result<()> { ... } }

Provided Methods§

Source

fn configure_app<'life0, 'life1, 'async_trait>( &'life0 self, configured_app: &'life1 ConfiguredApp<T>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Configure app hooks run immediately after [RuntimeFactors::configure_app].

Source

fn prepare_instance( &self, builder: &mut FactorsInstanceBuilder<'_, T, U>, ) -> Result<()>

Prepare instance hooks run immediately before FactorsExecutorApp::prepare returns.

Implementors§