feat(body): change Payload::Data to be a Buf

Closes #1508

BREAKING CHANGE: Each payload chunk must implement `Buf`, instead of
  just `AsRef<[u8]>`.
This commit is contained in:
Sean McArthur
2018-05-07 10:06:28 -07:00
parent dfa7e17960
commit a3be110a55
6 changed files with 34 additions and 30 deletions

View File

@@ -626,7 +626,6 @@ impl<T: Send, B: Send> AssertSend for Connection<T, B>
where
T: AsyncRead + AsyncWrite + Send + 'static,
B: Payload + 'static,
B::Data: Send + 'static,
{}
#[doc(hidden)]