[−][src]Function async_std::io::stdin
pub fn stdin() -> Stdin
Constructs a new handle to the standard input of the current process.
This function is an async version of std::io::stdin
.
Examples
use async_std::io; let stdin = io::stdin(); let mut line = String::new(); stdin.read_line(&mut line).await?;