Add read_some free function to read some bytes

This commit is contained in:
Evgeny Safronov
2016-09-12 19:52:44 +03:00
parent 933b34cd25
commit fb497aba44
2 changed files with 67 additions and 0 deletions
+2
View File
@@ -35,6 +35,7 @@ mod copy;
mod flush;
mod read_exact;
mod read_to_end;
mod read;
mod split;
mod window;
mod write_all;
@@ -42,6 +43,7 @@ pub use self::copy::{copy, Copy};
pub use self::flush::{flush, Flush};
pub use self::read_exact::{read_exact, ReadExact};
pub use self::read_to_end::{read_to_end, ReadToEnd};
pub use self::read::{read_some, ReadSome};
pub use self::split::{ReadHalf, WriteHalf};
pub use self::window::Window;
pub use self::write_all::{write_all, WriteAll};