Enum input::Event [−][src]
pub enum Event { Input(Input, Option<TimeStamp>), Loop(Loop), Custom(EventId, Arc<dyn Any + Send + Sync>, Option<TimeStamp>), }
Models all events.
Variants
Input events.
Time stamp is ignored when comparing input events for equality and order.
Loop(Loop)
Events that commonly used by event loops.
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][+]
Input: From<T>,
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][+]
Input: From<T>,
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][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,