Enum gpg_tui::app::command::Command [−][src]
pub enum Command {}Show variants
Confirm(Box<Command>), ShowHelp, ShowOutput(OutputType, String), ShowOptions, ListKeys(KeyType), ImportKeys(Vec<String>, bool), ImportClipboard, ExportKeys(KeyType, Vec<String>, bool), DeleteKey(KeyType, String), SendKey(String), EditKey(String), SignKey(String), GenerateKey, RefreshKeys, Copy(CopyType), ToggleDetail(bool), ToggleTableSize, Scroll(ScrollDirection, bool), Set(String, String), Get(String), SwitchMode(Mode), Paste, EnableInput, Search(Option<String>), NextTab, PreviousTab, Refresh, Quit, None,
Expand description
Command to run on rendering process.
It specifies the main operation to perform on App
.
Variants
Confirm the execution of a command.
Show help.
ShowOutput(OutputType, String)
Show application output.
Show popup for options menu.
ListKeys(KeyType)
List the public/secret keys.
Import public/secret keys from files or a keyserver.
Import public/secret keys from clipboard.
Export the public/secret keys.
Delete the public/secret key.
SendKey(String)
Send the key to the default keyserver.
EditKey(String)
Edit a key.
SignKey(String)
Sign a key.
Generate a new key pair.
Refresh the keyring.
Copy(CopyType)
Copy a property to clipboard.
ToggleDetail(bool)
Toggle the detail level.
Toggle the table size.
Scroll(ScrollDirection, bool)
Scroll the currrent widget.
Set the value of an option.
Get(String)
Get the value of an option.
SwitchMode(Mode)
Switch the application mode.
Paste the clipboard contents.
Enable command input.
Search for a value.
Select the next tab.
Select the previous tab.
Refresh the application.
Quit the application.
Do nothing.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Command
impl UnwindSafe for Command
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.