Enum easycurses::InputMode [] [src]

pub enum InputMode {
    Blocking,
    NonBlocking,
    TimeLimit(i32),
}

The input modes allowed.

Affects how EasyCurses::get_input works. Set a mode with EasyCurses::set_input_mode.

Variants

get_input will block indefinitely. This is the default.

get_input will return immediately. If no input is in the queue you get a None value back.

get_input will wait up to the number of milliseconds specified before returning None. If any value less than 1 is given, it uses 1 instead.

Trait Implementations

impl Debug for InputMode
[src]

Formats the value using the given formatter.

impl PartialEq for InputMode
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for InputMode
[src]

impl Clone for InputMode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for InputMode
[src]

impl Default for InputMode
[src]

The default input mode is Blocking.