[−][src]Function winconsole::console::flush_input
pub fn flush_input() -> WinResult<()>
Flushes the console input buffer.
Examples
console::flush_input().unwrap();
Errors
InvalidHandleError
: Returned if an invalid handle to the console input is retrieved or used.IoError
: Returned if an OS error occurs.