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