Enum mg_settings::Command [] [src]

pub enum Command<T> {
    Custom(T),
    Include(String),
    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 custom command.

An include command includes another configuration file.

A map command creates a new key mapping.

Fields

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

The key shortcut to remove.

The mode in which this mapping is available.

Trait Implementations

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

Formats the value using the given formatter.

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

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

This method tests for !=.