pub enum Value {
TerminalSize,
CursorPosition,
Event(Option<Duration>),
}
Expand description
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.
Event(Option<Duration>)
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 Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more