[−][src]Function winconsole::input::get_num_input_events
pub fn get_num_input_events() -> WinResult<u32>
Returns the number of input events which are available in the console input buffer.
Examples
let num = input::get_num_input_events().unwrap(); println!("input events available: {}", num);
Errors
InvalidHandleError
: Returned if an invalid handle to the console input is retrieved or used.IoError
: Returned if an OS error occurs.