[][src]Enum terminal::Value

pub enum Value {
    TerminalSize,
    CursorPosition,
    Event(Option<Duration>),
}

A value that can be retrieved from the terminal.

A Value can be retrieved with Terminal::get.

Variants

TerminalSize

Get the terminal size.

CursorPosition

Get the cursor position.

Try to get an event within the given duration. The application will wait indefinitely when None. It will wait for some duration if Some(duration) is given.

Auto Trait Implementations

impl RefUnwindSafe for Value

impl Send for Value

impl Sync for Value

impl Unpin for Value

impl UnwindSafe for Value

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, 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.