Closed
Description
I was trying to port over some server code using hyper
and I ran into this error:
error[E0277]: `(dyn futures::stream::Stream<Item=hyper::Chunk, Error=std::boxed::Box<(dyn std::error::Error + std::marker::Sync + std::marker::Send + 'static)>> + std::marker::Send + 'static)` cannot be shared between threads safely
After asking on Gitter, the issue might be that the compiler doesn't recognize that hyper::Body
(which is, more or less, a Stream
) can be Unpin
.
Metadata
Metadata
Assignees
Labels
No labels