pub enum Command<T> {
App(String),
Custom(T),
Map {
action: String,
keys: Vec<Key>,
mode: String,
},
Set(String, Value),
Unmap {
keys: Vec<Key>,
mode: String,
},
}Expand description
The Command enum represents a command from a config file.
Variants§
App(String)
A command from the application library.
Custom(T)
A custom command.
Map
A map command creates a new key mapping.
Fields
Set(String, Value)
A set command sets a value to an option.
Unmap
An unmap command removes a key mapping.
Trait Implementations§
impl<T> StructuralPartialEq for Command<T>
Auto Trait Implementations§
impl<T> Freeze for Command<T>where
T: Freeze,
impl<T> RefUnwindSafe for Command<T>where
T: RefUnwindSafe,
impl<T> Send for Command<T>where
T: Send,
impl<T> Sync for Command<T>where
T: Sync,
impl<T> Unpin for Command<T>where
T: Unpin,
impl<T> UnwindSafe for Command<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more