compio_fs

Function stdin

Source
pub fn stdin() -> Stdin
Expand description

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

ยงPlatform specific

  • Windows: This handle is best used for non-interactive uses, such as when a file is piped into the application. For technical reasons, if stdin is a console handle, the read method is implemented by using an ordinary blocking read on a separate thread, and it is impossible to cancel that read. This can make shutdown of the runtime hang until the user presses enter.