Add Unpin note

This commit is contained in:
Artem Vorotnikov
2019-10-09 02:02:16 +03:00
committed by Tim
parent 184ea42033
commit 5ab3866d96

View File

@@ -34,6 +34,7 @@ pub struct Transport<S, Item, SinkItem> {
impl<S, Item, SinkItem> Stream for Transport<S, Item, SinkItem>
where
// TODO: Remove Unpin bound when tokio-rs/tokio#1272 is resolved.
S: AsyncWrite + AsyncRead + Unpin,
Item: for<'a> Deserialize<'a>,
{