You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before Hyper 1.0, hyper::Body was always Sync, and we used to make Sync bodies out of non-Sync bodies or streams by wrapping them with hyper::Body::wrap_stream. StreamBody<T> doesn't use Hyper's trick with StreamWrapper anymore so it's not Sync anymore when T: Send. We could restore this functionality if we removed trait implementations of Stream (there is BodyStream for that), Clone, and Copy, and made its implementation of Debug less useful.
The text was updated successfully, but these errors were encountered:
Before Hyper 1.0,
hyper::Body
was alwaysSync
, and we used to makeSync
bodies out of non-Sync
bodies or streams by wrapping them withhyper::Body::wrap_stream
.StreamBody<T>
doesn't use Hyper's trick withStreamWrapper
anymore so it's notSync
anymore whenT: Send
. We could restore this functionality if we removed trait implementations ofStream
(there isBodyStream
for that),Clone
, andCopy
, and made its implementation ofDebug
less useful.The text was updated successfully, but these errors were encountered: