Enum show_image::event::Event [−][src]
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
Expand description
New events are available for processing.
This indicates the start of a new event-processing cycle.
WindowEvent(WindowEvent)
Expand description
A window event.
DeviceEvent(DeviceEvent)
Expand description
A device event.
Expand description
The application has been suspended.
Expand description
The application has been resumed.
Expand description
All input events have been processed and redraw processing is about to begin.
Expand description
All open redraw requests have been processed.
Expand description
All windows were closed.
This event can be received multiple times if you open a new window after all windows were closed.
Trait Implementations
impl From<DeviceEvent> for Event
[src]
impl From<DeviceEvent> for Event
[src]fn from(other: DeviceEvent) -> Self
[src]
fn from(other: DeviceEvent) -> Self
[src]Performs the conversion.
impl From<WindowEvent> for Event
[src]
impl From<WindowEvent> for Event
[src]fn from(other: WindowEvent) -> Self
[src]
fn from(other: WindowEvent) -> Self
[src]Performs the conversion.
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,