Enum mg_settings::Command [] [src]

pub enum Command<T> {
    App(String),
    Custom(T),
    Map {
        action: String,
        keys: Vec<Key>,
        mode: String,
    },
    Set(StringValue),
    Unmap {
        keys: Vec<Key>,
        mode: String,
    },
}

The Command enum represents a command from a config file.

Variants

A command from the application library.

A custom command.

A map command creates a new key mapping.

Fields of Map

The action that will be executed when the keys are pressed.

The key shortcut to trigger the action.

The mode in which this mapping is available.

A set command sets a value to an option.

An unmap command removes a key mapping.

Fields of Unmap

The key shortcut to remove.

The mode in which this mapping is available.

Trait Implementations

impl<T: Debug> Debug for Command<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: PartialEq> PartialEq for Command<T>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

Auto Trait Implementations

impl<T> Send for Command<T> where
    T: Send

impl<T> Sync for Command<T> where
    T: Sync