Enum gilrs::MappingError [−][src]
pub enum MappingError {
InvalidCode(Code),
InvalidName,
NotImplemented,
NotConnected,
DuplicatedEntry,
UnknownElement,
NotSdl2Compatible,
}
Expand description
The error type for functions related to gamepad mapping.
Variants
InvalidCode(Code)
Tuple Fields
0: 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for MappingError
impl Send for MappingError
impl Sync for MappingError
impl Unpin for MappingError
impl UnwindSafe for MappingError
Blanket Implementations
Mutably borrows from an owned value. Read more