#[non_exhaustive]pub enum Event {
Show 13 variants
Press {
button: Button,
},
Release {
button: Button,
},
Move,
Key {
key: String,
down: bool,
},
ToolActivated,
Action {
id: String,
},
Activated,
Deactivated,
ValuesMoved {
features: Vec<String>,
},
JobFinished {
job: u64,
result: Result<String, String>,
},
EditFeature {
feature: String,
},
FeatureMoved {
feature: String,
target: String,
before: bool,
},
FileOpened {
id: String,
files: Vec<OpenedFile>,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Press
Fields
Release
Fields
Move
Key
A key by name: Escape, Enter, A, Digit1.
ToolActivated
The active tool changed to Input::tool.
Action
A registered action’s key.
Activated
Deactivated
ValuesMoved
Formulas moved the values of these features.
JobFinished
A job this bench started finished.
EditFeature
The user asked to edit a feature of the bench’s: a double click on
its tree row. Selecting a feature alone never opens it; its menu
may offer to (menu_items).
FeatureMoved
A feature of the bench’s dragged in the tree and dropped just
before (before) or after target. Used, the bench decides: it
moves it itself (calls::MOVE_FEATURE, or its own data) or leaves
it where it was; passed over, the host moves it in its body’s
history. Either way it is one undo step.
FileOpened
The files the user picked for Request::OpenFile of this id;
none when the dialog was cancelled.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Forget for Event
impl Freeze for Event
impl Move for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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