[][src]Enum easycurses::TimeoutMode

pub enum TimeoutMode {
    Immediate,
    WaitUpTo(i32),
    Never,
}

The various timeouts that you can set for get_input to operate with.

Use this with the set_input_timeout method.

Variants

Immediate

If no input is available, return None.

WaitUpTo(i32)

Wait up to this many milliseconds before returning None.

Never

Block until input is given.

Trait Implementations

impl Clone for TimeoutMode[src]

impl Copy for TimeoutMode[src]

impl Debug for TimeoutMode[src]

impl Default for TimeoutMode[src]

fn default() -> Self[src]

use easycurses::TimeoutMode;
assert_eq!(TimeoutMode::default(), TimeoutMode::Never);

impl Eq for TimeoutMode[src]

impl Hash for TimeoutMode[src]

impl Ord for TimeoutMode[src]

impl PartialEq<TimeoutMode> for TimeoutMode[src]

impl PartialOrd<TimeoutMode> for TimeoutMode[src]

impl StructuralEq for TimeoutMode[src]

impl StructuralPartialEq for TimeoutMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.