[][src]Enum prodash::tui::Event

pub enum Event {
    Tick,
    Input(Key),
    SetWindowSize(Rect),
    SetTitle(String),
    SetInformation(Vec<Line>),
}

An event to be sent in the tui::render_with_input(…events) stream.

This way, the TUI can be instructed to draw frames or change the information to be displayed.

Variants

Tick

Draw a frame

Input(Key)

Send any key - can be used to simulate user input, and is typically generated by the TUI's own input loop.

SetWindowSize(Rect)

Change the size of the window to the given rectangle.

Useful to embed the TUI into other terminal user interfaces that can resize dynamically.

SetTitle(String)

Set the title of the progress dashboard

SetInformation(Vec<Line>)

Provide a list of titles and lines to populate the side bar on the right.

Auto Trait Implementations

impl RefUnwindSafe for Event

impl Send for Event

impl Sync for Event

impl Unpin for Event

impl UnwindSafe for Event

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.