pub enum XInputOptionalFnUsageError {
XInputNotLoaded,
InvalidControllerID,
DeviceNotConnected,
FunctionNotLoaded,
UnknownError(u32),
}
Expand description
Error that can be returned by functions that are not guaranteed to be present in earlier XInput versions.
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.
FunctionNotLoaded
Function is not present in loaded DLL
UnknownError(u32)
There was some sort of unexpected error happened, this is the error code windows returned.
Trait Implementations§
source§impl Clone for XInputOptionalFnUsageError
impl Clone for XInputOptionalFnUsageError
source§fn clone(&self) -> XInputOptionalFnUsageError
fn clone(&self) -> XInputOptionalFnUsageError
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 XInputOptionalFnUsageError
impl Debug for XInputOptionalFnUsageError
source§impl Hash for XInputOptionalFnUsageError
impl Hash for XInputOptionalFnUsageError
source§impl PartialEq for XInputOptionalFnUsageError
impl PartialEq for XInputOptionalFnUsageError
source§fn eq(&self, other: &XInputOptionalFnUsageError) -> bool
fn eq(&self, other: &XInputOptionalFnUsageError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for XInputOptionalFnUsageError
impl Eq for XInputOptionalFnUsageError
impl StructuralEq for XInputOptionalFnUsageError
impl StructuralPartialEq for XInputOptionalFnUsageError
Auto Trait Implementations§
impl RefUnwindSafe for XInputOptionalFnUsageError
impl Send for XInputOptionalFnUsageError
impl Sync for XInputOptionalFnUsageError
impl Unpin for XInputOptionalFnUsageError
impl UnwindSafe for XInputOptionalFnUsageError
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