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

Gamepad does not have element referenced by NativeEvCode.

Name contains comma (',').

This function is not implemented for current platform.

Gamepad is not connected.

Same gamepad element is referenced by axis and button.

Mapping with Button::Unknown or Axis::Unknown.

Mapping have button or axis that are not present in SDL2.

Trait Implementations

impl Copy for MappingError
[src]

impl Clone for MappingError
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for MappingError
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for MappingError
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Error for MappingError
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

The lower-level cause of this error, if any. Read more

impl Display for MappingError
[src]

[src]

Formats the value using the given formatter. Read more