pub enum Command {
CommitText(String),
Pause,
Resume,
Delete,
CleanDelete,
}
Expand description
Possible commands that can be generated by the afrim-preprocessor
.
Variants§
CommitText(String)
Request to commit a text.
Pause
Request to pause the listener.
Resume
Request to resume the listener.
Delete
Request to delete the last character.
CleanDelete
Request to clean the previous delete operation.
Useful by example in case that a key has been pressed, and we want to ensure that it has been released before continuing.
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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