pub enum XInputLoadingFailure {
AlreadyLoading,
AlreadyActive,
UnknownState,
NoDLL,
NoPointers,
}
Expand description
The ways that a dynamic load of XInput can fail.
Variants§
AlreadyLoading
The xinput system was already in the process of loading in some other thread. This attempt failed because of that, but that other attempt might still succeed.
AlreadyActive
The xinput system was already active. A failure of this kind leaves the system active.
UnknownState
The system was not loading or active, but was in some unknown state. If you get this, it’s probably a bug that you should report.
NoDLL
No DLL for XInput could be found. This places the system back into an “uninitialized” status, and you could potentially try again later if the user fiddles with the program’s DLL path or whatever.
NoPointers
A DLL was found that matches one of the expected XInput DLL names, but it didn’t contain both of the expected functions. This is probably a weird situation to find. Either way, the xinput status is set to “uninitialized” and as with the NoDLL error you could potentially try again.
Trait Implementations§
source§impl Clone for XInputLoadingFailure
impl Clone for XInputLoadingFailure
source§fn clone(&self) -> XInputLoadingFailure
fn clone(&self) -> XInputLoadingFailure
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for XInputLoadingFailure
impl Debug for XInputLoadingFailure
source§impl Hash for XInputLoadingFailure
impl Hash for XInputLoadingFailure
source§impl PartialEq for XInputLoadingFailure
impl PartialEq for XInputLoadingFailure
source§fn eq(&self, other: &XInputLoadingFailure) -> bool
fn eq(&self, other: &XInputLoadingFailure) -> bool
self
and other
values to be equal, and is used
by ==
.