Enum gilrs::ff::Error [−][src]
#[non_exhaustive]
pub enum Error {
FfNotSupported(GamepadId),
Disconnected(GamepadId),
InvalidDistanceModel(DistanceModelError),
SendFailed,
Other,
}
Expand description
Basic error type in force feedback module.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FfNotSupported(GamepadId)
Tuple Fields
0: GamepadId
Force feedback is not supported by device with this ID
Disconnected(GamepadId)
Tuple Fields
0: GamepadId
Device is not connected
InvalidDistanceModel(DistanceModelError)
Tuple Fields
Distance model is invalid.
SendFailed
The other end of channel was dropped.
Other
Unexpected error has occurred
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more