pub enum Event {
Menu(String),
LifeCycle(LifeCycle),
Window(WindowEvent, WindowId),
}
Expand description
Main event enumeration.
This enumeration is an entrypoint to all captured events.
Variants§
Menu(String)
The event indicates that a menu item has been clicked.
It stores an action name of the clicked menu item.
LifeCycle(LifeCycle)
Life cycle events (see LifeCycle).
Window(WindowEvent, WindowId)
Window events (see WindowEvent).
Trait Implementations§
Source§impl PartialOrd for Event
impl PartialOrd for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin 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