Enum gilrs::MappingError [−][src]
pub enum MappingError { InvalidCode(Code), InvalidName, NotImplemented, NotConnected, DuplicatedEntry, UnknownElement, NotSdl2Compatible, }
The error type for functions related to gamepad mapping.
Variants
InvalidCode(Code)
Gamepad does not have element referenced by EvCode
.
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 Copy for MappingError
impl Clone for MappingError
[src]
impl Clone for MappingError
fn clone(&self) -> MappingError
[src]
fn clone(&self) -> MappingError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for MappingError
[src]
impl Debug for MappingError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for MappingError
[src]
impl PartialEq for MappingError
fn eq(&self, other: &MappingError) -> bool
[src]
fn eq(&self, other: &MappingError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &MappingError) -> bool
[src]
fn ne(&self, other: &MappingError) -> bool
This method tests for !=
.
impl Error for MappingError
[src]
impl Error for MappingError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
1.0.0
[src]The lower-level cause of this error, if any. Read more
impl Display for MappingError
[src]
impl Display for MappingError
Auto Trait Implementations
impl Send for MappingError
impl Send for MappingError
impl Sync for MappingError
impl Sync for MappingError