[][src]Enum rusty_xinput::XInputLoadingFailure

pub enum XInputLoadingFailure {
    AlreadyLoading,
    AlreadyActive,
    UnknownState,
    NoDLL,
    NoPointers,
}

The ways that a dynamic load of XInput can fail.

Variants

AlreadyLoading
Deprecated

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

impl Eq for XInputLoadingFailure[src]

impl Copy for XInputLoadingFailure[src]

impl PartialEq<XInputLoadingFailure> for XInputLoadingFailure[src]

#[must_use]
default fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Clone for XInputLoadingFailure[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for XInputLoadingFailure[src]

impl Hash for XInputLoadingFailure[src]

default fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]