read_stdin

Function read_stdin 

Source
pub fn read_stdin(arena: &Arena, timeout: Duration) -> Option<ArenaString<'_>>
Expand description

Reads from stdin.

ยงReturns

  • None if there was an error reading from stdin.
  • Some("") if the given timeout was reached.
  • Otherwise, it returns the read, non-empty string.