Reqwest and other networking libraries often have their request structs implement IntoFuture, making the following pattern possible:
let result = Request::new().await
let result = Request::new().with_something(x).await
It'd be nice if functions which return a Future, and are decorated with bon, would result in builders that implement IntoFuture.
Reqwest and other networking libraries often have their request structs implement
IntoFuture, making the following pattern possible:It'd be nice if functions which return a Future, and are decorated with bon, would result in builders that implement IntoFuture.