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.

Structs

StdinStream

A futures-based stream of bytes from standard input.

StdoutSink

A futures-based sink of bytes intended for standard output.

Functions

borrow_stdio

"Borrow" the stdio streams to make them accessible to Tokio.