Impl newtype StreamReadable

It wraps a `Stream<Item = Result<Bytes, E>>` and implements `Read` and
`BufRead` on it so that it can be used on sync context.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-06-18 17:29:50 +10:00
parent 39ab334da5
commit 0480e99460
No known key found for this signature in database
GPG key ID: 591C0B03040416D6
2 changed files with 82 additions and 0 deletions

View file

@ -22,6 +22,7 @@ mod ui_thread;
pub use ui_thread::UIThread;
mod extracter;
mod stream_readable;
mod readable_rx;