Much work

This commit is contained in:
Carl Lerche
2017-06-23 13:13:50 -07:00
parent a3950354aa
commit fa21970656
15 changed files with 531 additions and 77 deletions

View File

@@ -1,5 +1,6 @@
use ConnectionError;
use frame::Frame;
use proto::ReadySink;
use futures::*;
@@ -45,3 +46,13 @@ impl<T> Sink for PingPong<T>
self.inner.poll_complete()
}
}
impl<T> ReadySink for PingPong<T>
where T: Stream<Item = Frame, Error = ConnectionError>,
T: Sink<SinkItem = Frame, SinkError = ConnectionError>,
T: ReadySink,
{
fn poll_ready(&mut self) -> Poll<(), ConnectionError> {
self.inner.poll_ready()
}
}