Enum gilrs::ff::base_effect::BaseEffectType
source · #[non_exhaustive]pub enum BaseEffectType {
Weak {
magnitude: u16,
},
Strong {
magnitude: u16,
},
}
Expand description
Kind of BaseEffect
.
Currently base effect support only xinput model of force feedback, which means that gamepad have weak and strong motor.
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.
Implementations§
Trait Implementations§
source§impl Clone for BaseEffectType
impl Clone for BaseEffectType
source§fn clone(&self) -> BaseEffectType
fn clone(&self) -> BaseEffectType
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 BaseEffectType
impl Debug for BaseEffectType
source§impl Default for BaseEffectType
impl Default for BaseEffectType
source§impl Mul<f32> for BaseEffectType
impl Mul<f32> for BaseEffectType
source§impl PartialEq for BaseEffectType
impl PartialEq for BaseEffectType
source§fn eq(&self, other: &BaseEffectType) -> bool
fn eq(&self, other: &BaseEffectType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BaseEffectType
impl Eq for BaseEffectType
impl StructuralPartialEq for BaseEffectType
Auto Trait Implementations§
impl Freeze for BaseEffectType
impl RefUnwindSafe for BaseEffectType
impl Send for BaseEffectType
impl Sync for BaseEffectType
impl Unpin for BaseEffectType
impl UnwindSafe for BaseEffectType
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