[]Enum piston::Event

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

Models all events.



Input events.

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


Events that commonly used by event loops.

Custom(EventIdArc<dyn Any + 'static + Send + Sync>, 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 AfterRenderEvent for Event

impl ButtonEvent for Event

impl Clone for Event

impl CloseEvent for Event

impl ControllerAxisEvent for Event

impl CursorEvent for Event

impl Debug for Event

impl FocusEvent for Event

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

impl From<AfterRenderArgs> for Event

impl From<IdleArgs> for Event

impl From<Loop> for Event

impl From<RenderArgs> for Event

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

impl From<UpdateArgs> for Event

impl GenericEvent for Event

impl IdleEvent for Event

impl Into<Option<Input>> for Event

impl Into<Option<Loop>> for Event

impl MouseCursorEvent for Event

impl MouseRelativeEvent for Event

impl MouseScrollEvent for Event

impl PartialEq<Event> for Event

impl PartialOrd<Event> for Event

impl RenderEvent for Event

impl ResizeEvent for Event

impl TextEvent for Event

impl TouchEvent for Event

impl UpdateEvent for Event

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> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> PressEvent for T where
    T: ButtonEvent

impl<T> ReleaseEvent for T where
    T: ButtonEvent

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.