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
Blocking
get_input
will block indefinitely. This is the default.
NonBlocking
get_input
will return immediately. If no input is in the queue you get
a None
value back.
TimeLimit(i32)
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]
impl PartialEq for InputMode
[src]
fn eq(&self, __arg_0: &InputMode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &InputMode) -> bool
This method tests for !=
.
impl Eq for InputMode
[src]
impl Clone for InputMode
[src]
fn clone(&self) -> InputMode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for InputMode
[src]
impl Default for InputMode
[src]
fn default() -> Self
The default input mode is Blocking.