mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-06 12:10:02 +00:00
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:
parent
39ab334da5
commit
0480e99460
2 changed files with 82 additions and 0 deletions
|
@ -22,6 +22,7 @@ mod ui_thread;
|
|||
pub use ui_thread::UIThread;
|
||||
|
||||
mod extracter;
|
||||
mod stream_readable;
|
||||
|
||||
mod readable_rx;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue