[][src]Enum input::Event

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

Models all events.

Variants

Input(InputOption<TimeStamp>)

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 + Send + Sync>, Option<TimeStamp>)

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[src]

impl ButtonEvent for Event[src]

impl Clone for Event[src]

impl CloseEvent for Event[src]

impl ControllerAxisEvent for Event[src]

impl CursorEvent for Event[src]

impl Debug for Event[src]

impl FocusEvent for Event[src]

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

impl From<AfterRenderArgs> for Event[src]

impl From<IdleArgs> for Event[src]

impl From<Loop> for Event[src]

impl From<RenderArgs> for Event[src]

impl<T> From<T> for Event where
    Input: From<T>, 
[src]

impl From<UpdateArgs> for Event[src]

impl GenericEvent for Event[src]

impl IdleEvent for Event[src]

impl Into<Option<Input>> for Event[src]

impl Into<Option<Loop>> for Event[src]

impl MouseCursorEvent for Event[src]

impl MouseRelativeEvent for Event[src]

impl MouseScrollEvent for Event[src]

impl PartialEq<Event> for Event[src]

impl PartialOrd<Event> for Event[src]

impl RenderEvent for Event[src]

impl ResizeEvent for Event[src]

impl TextEvent for Event[src]

impl TouchEvent for Event[src]

impl UpdateEvent for Event[src]

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
[src]

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.