[][src]Function tokio::io::stdin

pub fn stdin() -> Stdin
This is supported on feature="io-std" only.

Constructs a new handle to the standard input of the current process.

The returned handle allows reading from standard input from the within the Tokio runtime.

As an additional caveat, reading from the handle may block the calling future indefinitely if there is not enough data available. This makes this handle unsuitable for use in any circumstance where immediate reaction to available data is required, e.g. interactive use or when implementing a subprocess driven by requests on the standard input.