[]Enum piston_window::Event

pub enum Event {
    Input(InputOption<u32>),
    Loop(Loop),
    Custom(EventIdArc<dyn Any + 'static + Sync + Send>, Option<u32>),
}

Models all events.

Variants

Input(InputOption<u32>)

Input events.

Time stamp is ignored when comparing input events for equality and order.

Loop(Loop)

Events that commonly used by event loops.

Custom(EventIdArc<dyn Any + 'static + Sync + Send>, Option<u32>)

Custom event.

When comparing two custom events for equality, they always return false.

When comparing partial order of two custom events, the event ids are checked and if they are equal it returns None.

Time stamp is ignored both when comparing custom events for equality and order.

Trait Implementations

impl MouseScrollEvent for Event

impl CloseEvent for Event

impl TouchEvent for Event

impl TextEvent for Event

impl UpdateEvent for Event

impl Debug for Event

impl CursorEvent for Event

impl ButtonEvent for Event

impl RenderEvent for Event

impl ControllerAxisEvent for Event

impl PartialEq<Event> for Event

impl MouseRelativeEvent for Event

impl GenericEvent for Event

impl Into<Option<Input>> for Event

impl Into<Option<Loop>> for Event

impl PartialOrd<Event> for Event

impl FocusEvent for Event

impl ResizeEvent for Event

impl AfterRenderEvent for Event

impl Clone for Event

impl IdleEvent for Event

impl MouseCursorEvent for Event

impl<T> From<(T, Option<u32>)> for Event where
    Input: From<T>, 

impl From<Loop> for Event

impl From<UpdateArgs> for Event

impl<T> From<T> for Event where
    Input: From<T>, 

impl From<IdleArgs> for Event

impl From<AfterRenderArgs> for Event

impl From<RenderArgs> for Event

Auto Trait Implementations

impl Send for Event

impl Unpin for Event

impl Sync for Event

impl !UnwindSafe for Event

impl !RefUnwindSafe for Event

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ReleaseEvent for T where
    T: ButtonEvent

impl<T> PressEvent for T where
    T: ButtonEvent

impl<T> SetParameter for T