Enum gilrs::MappingError
[−]
[src]
pub enum MappingError { InvalidCode(NativeEvCode), InvalidName, NotImplemented, NotConnected, DuplicatedEntry, }
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.
Trait Implementations
impl Copy for MappingError
[src]
impl Clone for MappingError
[src]
fn clone(&self) -> MappingError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for MappingError
[src]
impl PartialEq for MappingError
[src]
fn eq(&self, __arg_0: &MappingError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MappingError) -> bool
This method tests for !=
.
impl Error for MappingError
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more