I have started to recently use futures in Rust, but I couldn't find any way to print the future value for debugging purpose. I get this error even with the formatting helper:
^^^^^^^^ `futures::Future<Item=hyper::Response, Error=hyper::Error>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
for the below code
#[cfg(test)]
println!(">>>>>>>> Future value returned {:?}", future);
Is there any existing solution (macros) to debug this?
println!(">>>>>>>> Future value returned {:?}", future.poll());
? – QuinquagesimaFuture<Item = hyper::Response, Error = hyper::Error>
which doesn't get resolved for the client request. I will try to look into the issue based on this clarification now – Xylina