Trait spacetimedb_client_api::WorkerCtx
source · 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;
}