More work

This commit is contained in:
Carl Lerche
2017-03-10 13:53:44 -08:00
parent e2871d92fa
commit 841796f59a
4 changed files with 104 additions and 50 deletions

View File

@@ -87,3 +87,12 @@ impl<T: AsyncWrite> Sink for FramedWrite<T> {
self.inner.shutdown().map_err(Into::into)
}
}
impl<T: Stream> Stream for FramedWrite<T> {
type Item = T::Item;
type Error = T::Error;
fn poll(&mut self) -> Poll<Option<T::Item>, T::Error> {
self.inner.poll()
}
}