Enum gilrs::MappingError
[−]
[src]
pub enum MappingError { InvalidCode(NativeEvCode), InvalidName, NotImplemented, NotConnected, DuplicatedEntry, UnknownElement, NotSdl2Compatible, }
The error type for functions related to gamepad mapping.
Variants
InvalidCode(NativeEvCode)
Gamepad does not have element referenced by NativeEvCode
.
InvalidName
Name contains comma (',').
NotImplemented
This function is not implemented for current platform.
NotConnected
Gamepad is not connected.
DuplicatedEntry
Same gamepad element is referenced by axis and button.
UnknownElement
Mapping
with Button::Unknown
or Axis::Unknown
.
NotSdl2Compatible
Mapping
have button or axis that are not present in SDL2.
Trait Implementations
impl Copy for MappingError
[src]
impl Clone for MappingError
[src]
fn clone(&self) -> MappingError
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for MappingError
[src]
impl PartialEq for MappingError
[src]
fn eq(&self, __arg_0: &MappingError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MappingError) -> bool
[src]
This method tests for !=
.
impl Error for MappingError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more