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
.
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
impl<'a> RefUnwindSafe for App<'a>
impl<'a> !UnwindSafe for App<'a>
Blanket Implementations
type Err = NoError
type Err = NoError
The error type produced by a failed conversion.
pub fn approx_from(
src: Src
) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
pub fn approx_from(
src: Src
) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
pub fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
pub fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
Mutably borrows from an owned value. Read more
Approximate the subject to a given type with the default scheme.
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject to a given type with a specific scheme.
Attempt to convert the subject to a given type.
type Err = NoError
type Err = NoError
The error type produced by a failed conversion.
pub fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
pub fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
Convert the given value into an exactly equivalent representation.
type Err = <Dst as ValueFrom<Src>>::Err
type Err = <Dst as ValueFrom<Src>>::Err
The error type produced by a failed conversion.
pub fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
pub fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
Convert the subject into an exactly equivalent representation.