pub trait WorkerCtx: ControlNodeDelegate + ControlStateDelegate + Send + Sync {
    // Required methods
    fn gather_metrics(&self) -> Vec<MetricFamily>;
    fn database_instance_context_controller(
        &self
    ) -> &DatabaseInstanceContextController;
    fn load_module_host_context<'life0, 'async_trait>(
        &'life0 self,
        db: Database,
        instance_id: u64
    ) -> Pin<Box<dyn Future<Output = Result<ModuleHostContext>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn host_controller(&self) -> &Arc<HostController>;
    fn client_actor_index(&self) -> &ClientActorIndex;
}

Required Methods§

source

fn gather_metrics(&self) -> Vec<MetricFamily>

source

fn database_instance_context_controller( &self ) -> &DatabaseInstanceContextController

source

fn load_module_host_context<'life0, 'async_trait>( &'life0 self, db: Database, instance_id: u64 ) -> Pin<Box<dyn Future<Output = Result<ModuleHostContext>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn host_controller(&self) -> &Arc<HostController>

source

fn client_actor_index(&self) -> &ClientActorIndex

Implementors§