Enum gilrs::MappingError
source · [−]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)
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
sourceimpl Clone for MappingError
impl Clone for MappingError
sourcefn clone(&self) -> MappingError
fn clone(&self) -> MappingError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MappingError
impl Debug for MappingError
sourceimpl Display for MappingError
impl Display for MappingError
sourceimpl Error for MappingError
impl Error for MappingError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl PartialEq<MappingError> for MappingError
impl PartialEq<MappingError> for MappingError
sourcefn eq(&self, other: &MappingError) -> bool
fn eq(&self, other: &MappingError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MappingError) -> bool
fn ne(&self, other: &MappingError) -> bool
This method tests for !=
.
impl Copy for MappingError
impl Eq for MappingError
impl StructuralEq for MappingError
impl StructuralPartialEq for MappingError
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more