HF RL Explorer

Improve ergonomics of Middleware and Endpoint traits by supporting async fn syntax

Improve ergonomics of Middleware and Endpoint traits by supporting async fn syntax: a task in LegoFlow-SWE (Harbor dataset). Currently, implementing the Middleware<State and Endpoint<State traits requires writing a method that returns a manually boxed future (e.g., Pin<Box<dyn Future<... + Send )…

The task

Currently, implementing the `Middleware<State>` and `Endpoint<State>` traits requires writing a method that returns a manually boxed future (e.g., `Pin<Box<dyn Future<...> + Send>>`). This is verbose and reduces the readability of common middleware and endpoint implementations.

Part of Lego-X/LegoFlow-SWE.