Reexport Encoder, Decoder, Framed* from tokio::codec (#499)

This commit is contained in:
Roman
2018-08-14 11:18:54 -07:00
committed by Carl Lerche
parent 31f71dedee
commit 2e343f9e42
5 changed files with 30 additions and 10 deletions
+24
View File
@@ -73,6 +73,7 @@ extern crate mio;
extern crate tokio_current_thread;
extern crate tokio_io;
extern crate tokio_executor;
extern crate tokio_codec;
extern crate tokio_fs;
extern crate tokio_reactor;
extern crate tokio_threadpool;
@@ -92,6 +93,29 @@ pub mod util;
pub use executor::spawn;
pub use runtime::run;
pub mod codec {
//! Utilities for encoding and decoding frames.
//!
//! Contains adapters to go from streams of bytes, [`AsyncRead`] and
//! [`AsyncWrite`], to framed streams implementing [`Sink`] and [`Stream`].
//! Framed streams are also known as [transports].
//!
//! [`AsyncRead`]: #
//! [`AsyncWrite`]: #
//! [`Sink`]: #
//! [`Stream`]: #
//! [transports]: #
pub use tokio_codec::{
Decoder,
Encoder,
Framed,
FramedParts,
FramedRead,
FramedWrite,
};
}
pub mod io {
//! Asynchronous I/O.
//!