I am trying to implement
FromRequest trait from
from_request method returns a future and I would like to call an async function in this method however apparently I cant use await in there since it is not an async function
I also cannot use
futuresExt.map .and_then etc on a standard library feature returned by async functions.
What are my options then?
should I abandon using async functions and have my functions return futures::Future instead?
PS: I tried to use poll method but apparently poll requires a context to which I dont have access to