Enum rusty_xinput::XInputUsageError
source · pub enum XInputUsageError {
XInputNotLoaded,
InvalidControllerID,
DeviceNotConnected,
UnknownError(u32),
}
Expand description
These are all the sorts of problems that can come up when you’re using the xinput system.
Variants§
XInputNotLoaded
XInput isn’t currently loaded.
InvalidControllerID
The controller ID you gave was 4 or more.
DeviceNotConnected
Not really an error, this controller is just missing.
UnknownError(u32)
There was some sort of unexpected error happened, this is the error code windows returned.
Trait Implementations§
source§impl Clone for XInputUsageError
impl Clone for XInputUsageError
source§fn clone(&self) -> XInputUsageError
fn clone(&self) -> XInputUsageError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for XInputUsageError
impl Debug for XInputUsageError
source§impl Hash for XInputUsageError
impl Hash for XInputUsageError
source§impl PartialEq for XInputUsageError
impl PartialEq for XInputUsageError
source§fn eq(&self, other: &XInputUsageError) -> bool
fn eq(&self, other: &XInputUsageError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for XInputUsageError
impl Eq for XInputUsageError
impl StructuralEq for XInputUsageError
impl StructuralPartialEq for XInputUsageError
Auto Trait Implementations§
impl RefUnwindSafe for XInputUsageError
impl Send for XInputUsageError
impl Sync for XInputUsageError
impl Unpin for XInputUsageError
impl UnwindSafe for XInputUsageError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more