pub struct RumbleCommand {
pub left_trigger: u8,
pub right_trigger: u8,
pub strong: u8,
pub weak: u8,
}Expand description
Rumble motor intensities.
All values are 0–255 where 0 is off and 255 is maximum.
Fields§
§left_trigger: u8Left trigger impulse motor.
right_trigger: u8Right trigger impulse motor.
strong: u8Strong (left) rumble motor.
weak: u8Weak (right) rumble motor.
Trait Implementations§
Source§impl Clone for RumbleCommand
impl Clone for RumbleCommand
Source§fn clone(&self) -> RumbleCommand
fn clone(&self) -> RumbleCommand
Returns a duplicate 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 RumbleCommand
impl Debug for RumbleCommand
Source§impl Default for RumbleCommand
impl Default for RumbleCommand
Source§fn default() -> RumbleCommand
fn default() -> RumbleCommand
Returns the “default value” for a type. Read more
Source§impl Format for RumbleCommand
impl Format for RumbleCommand
Source§impl PartialEq for RumbleCommand
impl PartialEq for RumbleCommand
impl Eq for RumbleCommand
impl StructuralPartialEq for RumbleCommand
Auto Trait Implementations§
impl Freeze for RumbleCommand
impl RefUnwindSafe for RumbleCommand
impl Send for RumbleCommand
impl Sync for RumbleCommand
impl Unpin for RumbleCommand
impl UnwindSafe for RumbleCommand
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