pub struct CustomKeyAction {
pub action: BindingAction,
pub modifiers: Vec<Modifier>,
pub key: Key,
pub command: String,
}Expand description
A custom key binding that runs a shell command.
Fields§
§action: BindingActionThe keyboard event phase that triggers this binding.
modifiers: Vec<Modifier>The modifier keys required for this binding.
key: KeyThe XKB keysym name (e.g. Key::new("Return"), Key::new("a")).
command: StringThe shell command to execute.
Trait Implementations§
Source§impl Clone for CustomKeyAction
impl Clone for CustomKeyAction
Source§fn clone(&self) -> CustomKeyAction
fn clone(&self) -> CustomKeyAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CustomKeyAction
impl Debug for CustomKeyAction
Auto Trait Implementations§
impl Freeze for CustomKeyAction
impl RefUnwindSafe for CustomKeyAction
impl Send for CustomKeyAction
impl Sync for CustomKeyAction
impl Unpin for CustomKeyAction
impl UnwindSafe for CustomKeyAction
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