pub trait NodeDelegate: Send + Sync {
type JwtAuthProviderT: JwtAuthProvider;
// Required methods
fn gather_metrics(&self) -> Vec<MetricFamily>;
fn client_actor_index(&self) -> &ClientActorIndex;
fn jwt_auth_provider(&self) -> &Self::JwtAuthProviderT;
fn leader<'life0, 'async_trait>(
&'life0 self,
database_id: u64,
) -> Pin<Box<dyn Future<Output = Result<Option<Host>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn module_logs_dir(&self, replica_id: u64) -> ModuleLogsDir;
}Expand description
Defines the state / environment of a SpacetimeDB node from the PoV of the client API.
Types returned here should be considered internal state and never be surfaced to the API.