Crate tokio_borrow_stdio [−] [src]
"Borrow" the stdio streams temporarily, exposing them to a Tokio core as nonblocking streams.
As in many such implementations, the I/O is made nonblocking by spawning threads to interact with the stdin and stdout streams. These exchange data with the calling thread through futures channels.
A futures-based stream of bytes from standard input.
A futures-based sink of bytes intended for standard output.
"Borrow" the stdio streams to make them accessible to Tokio.