pub trait RouterHost: Send + Sync {
// Required methods
fn serve(
&self,
variant: ServeVariant,
) -> BoxFuture<'_, Result<TargetEndpoint>>;
fn diagnostics(&self) -> Result<BTreeMap<String, f64>>;
fn restore(&self) -> BoxFuture<'_, Result<()>>;
}Expand description
2026-09-26: Re-serves the current checkpoint under a variant; implemented by the serving process.
Required Methods§
Sourcefn serve(&self, variant: ServeVariant) -> BoxFuture<'_, Result<TargetEndpoint>>
fn serve(&self, variant: ServeVariant) -> BoxFuture<'_, Result<TargetEndpoint>>
2026-09-26: Re-serve the current checkpoint under variant and return
the endpoint once it answers.