Unfortunately there doesn't seem to be really anything in actix-web's documentation on how to actually use their Responder trait other than an incredibly simple example using Ready to generate a future that's already finished. How do I return some actual async code here? e. g.
impl Responder for MyResponder {
type Error = Error;
type Future = What goes here?;
fn respond_to(self, req: &HttpRequest) -> Self::Future {
async { Ok() }
}
}