pub enum Event {
Window(WindowEvent),
Input(InputEvent),
Lifecycle(LifecycleEvent),
Frame,
}Expand description
Platform events
Variants§
Window(WindowEvent)
Window-related event
Input(InputEvent)
Input event (mouse, keyboard, touch)
Lifecycle(LifecycleEvent)
Application lifecycle event
Frame
Frame tick - time to render
This event is sent when the application should render a frame. On desktop, this typically happens after vsync or at 60fps. On mobile, this happens when the app is focused and ready.
Trait Implementations§
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