Refactor framing to use Streams and Sinks

- Gets rid of `easy` module, instead providing framing support directly
  in the `io` module.

- In particular, adds a framing adapter directly to the `Io` trait,
  which gives you a Stream + Sink object. That object can then be
  `split` into separate `Stream` and `Sink` objects if needed.

- Deprecates the `FramedIo` trait; that's now just Stream + Sink.

- Updates the line framing test to use the stream/sink combinators.
This commit is contained in:
Aaron Turon
2016-11-08 15:47:13 -08:00
parent 3eac142e5f
commit 36e3dbf418
4 changed files with 223 additions and 210 deletions
-1
View File
@@ -112,4 +112,3 @@ mod heap;
pub mod channel;
pub mod net;
pub mod reactor;
pub mod easy;