Struct gpg_tui::term::tui::Tui[][src]

pub struct Tui<B: Backend> {
    pub events: EventHandler,
    pub paused: bool,
    // some fields omitted
}
Expand description

Text-based user interface.

Tui is responsible for setting up the terminal and initializing the interface. Terminal event handler can be accessed via events field.

Fields

events: EventHandler

Terminal event handler.

paused: bool

Is the interface paused?

Implementations

Constructs a new instance of Tui.

Initializes the terminal interface.

It enables the raw mode and sets terminal properties.

Toggles the paused state of interface.

It disables the key input and exits the terminal interface on pause (and vice-versa).

Enables the mouse capture.

Disables the mouse capture.

Draw the terminal interface by rendering the widgets.

Exits the terminal interface.

It disables the raw mode and reverts back the terminal properties.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The error type produced by a failed conversion.

Convert the given value into an approximately equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an approximately equivalent representation.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Approximate the subject with the default scheme.

Approximate the subject with a specific scheme.

Approximate the subject to a given type with the default scheme.

Approximate the subject to a given type with a specific scheme.

Convert the subject to a given type.

Attempt to convert the subject to a given type.

Attempt a value conversion of the subject to a given type.

Performs the conversion.

Performs the conversion.

The error type produced by a failed conversion.

Convert the given value into the subject type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the subject into the destination type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the given value into an exactly equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an exactly equivalent representation.