RouterHost

Trait RouterHost 

Source
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§

Source

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.

Source

fn diagnostics(&self) -> Result<BTreeMap<String, f64>>

2026-09-26: The asynchronous router’s cumulative counters. The driver subtracts the reading before a lane’s async legs from the one after. A host without counters returns an empty map.

Source

fn restore(&self) -> BoxFuture<'_, Result<()>>

2026-09-26: Put back whatever was serving before the gate started. Called from the benchmark’s cleanup.

Implementors§