Enum show_image::event::Event
source · [−]pub enum Event {
NewEvents,
WindowEvent(WindowEvent),
DeviceEvent(DeviceEvent),
Suspended,
Resumed,
MainEventsCleared,
RedrawEventsCleared,
AllWindowsClosed,
}
Expand description
Global event.
This also includes window events for all windows.
Variants
NewEvents
New events are available for processing.
This indicates the start of a new event-processing cycle.
WindowEvent(WindowEvent)
A window event.
DeviceEvent(DeviceEvent)
A device event.
Suspended
The application has been suspended.
Resumed
The application has been resumed.
MainEventsCleared
All input events have been processed and redraw processing is about to begin.
RedrawEventsCleared
All open redraw requests have been processed.
AllWindowsClosed
All windows were closed.
This event can be received multiple times if you open a new window after all windows were closed.
Trait Implementations
sourceimpl From<DeviceEvent> for Event
impl From<DeviceEvent> for Event
sourcefn from(other: DeviceEvent) -> Self
fn from(other: DeviceEvent) -> Self
Converts to this type from the input type.
sourceimpl From<WindowEvent> for Event
impl From<WindowEvent> for Event
sourcefn from(other: WindowEvent) -> Self
fn from(other: WindowEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more