pub enum Action {
SetView(String),
LockView {
lock: String,
unlock: String,
latches: bool,
looks_locked_from: Vec<String>,
},
ApplyModifier(Modifier),
Submit {
text: Option<CString>,
keys: Vec<KeySym>,
},
Erase,
ShowPreferences,
}
Expand description
Action to perform on the keypress and, in reverse, on keyrelease
Variants§
SetView(String)
Switch to this view
LockView
Switch to a view and latch
Fields
ApplyModifier(Modifier)
Hold this modifier for as long as the button is pressed
Submit
Submit some text
Fields
Erase
Erase a position behind the cursor
ShowPreferences
Implementations§
Trait Implementations§
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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