Enum ggez::event::ErrorOrigin
source · pub enum ErrorOrigin {
Show 17 variants
Update,
Draw,
MouseButtonDownEvent,
MouseButtonUpEvent,
MouseMotionEvent,
MouseEnterOrLeave,
MouseWheelEvent,
KeyDownEvent,
KeyUpEvent,
TextInputEvent,
TouchEvent,
GamepadButtonDownEvent,
GamepadButtonUpEvent,
GamepadAxisEvent,
FocusEvent,
QuitEvent,
ResizeEvent,
}
Expand description
Used in EventHandler::on_error()
to specify where an error originated
Variants§
Update
error originated in update()
Draw
error originated in draw()
MouseButtonDownEvent
error originated in mouse_button_down_event()
MouseButtonUpEvent
error originated in mouse_button_up_event()
MouseMotionEvent
error originated in mouse_motion_event()
MouseEnterOrLeave
error originated in mouse_enter_or_leave()
MouseWheelEvent
error originated in mouse_wheel_event()
KeyDownEvent
error originated in key_down_event()
KeyUpEvent
error originated in key_up_event()
TextInputEvent
error originated in text_input_event()
TouchEvent
error originated in touch_event()
GamepadButtonDownEvent
error originated in gamepad_button_down_event()
GamepadButtonUpEvent
error originated in gamepad_button_up_event()
GamepadAxisEvent
error originated in gamepad_axis_event()
FocusEvent
error originated in focus_event()
QuitEvent
error originated in quit_event()
ResizeEvent
error originated in resize_event()
Trait Implementations§
source§impl Clone for ErrorOrigin
impl Clone for ErrorOrigin
source§fn clone(&self) -> ErrorOrigin
fn clone(&self) -> ErrorOrigin
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ErrorOrigin
impl Debug for ErrorOrigin
source§impl PartialEq<ErrorOrigin> for ErrorOrigin
impl PartialEq<ErrorOrigin> for ErrorOrigin
source§fn eq(&self, other: &ErrorOrigin) -> bool
fn eq(&self, other: &ErrorOrigin) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ErrorOrigin
impl Eq for ErrorOrigin
impl StructuralEq for ErrorOrigin
impl StructuralPartialEq for ErrorOrigin
Auto Trait Implementations§
impl RefUnwindSafe for ErrorOrigin
impl Send for ErrorOrigin
impl Sync for ErrorOrigin
impl Unpin for ErrorOrigin
impl UnwindSafe for ErrorOrigin
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
source§impl<T> HasMut<T> for T
impl<T> HasMut<T> for T
source§fn retrieve_mut(&mut self) -> &mut T
fn retrieve_mut(&mut self) -> &mut T
Method to retrieve the context type as mutable.