Struct gpg_tui::app::launcher::App[][src]

pub struct App<'a> {
Show fields pub state: State, pub mode: Mode, pub prompt: Prompt, pub tab: Tab, pub options: StatefulList<Command>, pub splash_screen: SplashScreen, pub key_bindings: StatefulList<KeyBinding<'a>>, pub keys: HashMap<KeyType, Vec<GpgKey>>, pub keys_table: StatefulTable<GpgKey>, pub keys_table_states: HashMap<KeyType, TableState>, pub keys_table_detail: KeyDetail, pub keys_table_margin: u16, pub clipboard: Option<ClipboardContext>, pub gpgme: &'a mut GpgContext,
}
Expand description

Main application.

It is responsible for running the commands for changing the state of the interface.

Fields

state: State

Application state.

mode: Mode

Application mode.

prompt: Prompt

Prompt manager.

tab: Tab

Current tab.

options: StatefulList<Command>

Content of the options menu.

splash_screen: SplashScreen

Splash screen of the application.

key_bindings: StatefulList<KeyBinding<'a>>

Content of the key bindings list.

keys: HashMap<KeyType, Vec<GpgKey>>

Public/secret keys.

keys_table: StatefulTable<GpgKey>

Table of public/secret keys.

keys_table_states: HashMap<KeyType, TableState>

States of the keys table.

keys_table_detail: KeyDetail

Level of detail to show for keys table.

keys_table_margin: u16

Bottom margin value of the keys table.

clipboard: Option<ClipboardContext>

Clipboard context.

gpgme: &'a mut GpgContext

GPGME context.

Implementations

Constructs a new instance of App.

Resets the application state.

Handles the tick event of the application.

It is currently used to flush the prompt messages.

Runs the given command which is used to specify the widget to render or action to perform.

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.