Skip to main content

stdin

Function stdin 

Source
pub fn stdin() -> Stdin 
Expand description

Return a handle to inherited standard input.

Every call returns a cheap Copy handle referencing the same process-wide stdin state. Reads are unbuffered and serialized through this module’s stdin lock.

§Returns

A Stdin handle.

§Errors and panics

This function does not fail or intentionally panic. I/O errors are reported by the handle’s Read implementation.