Struct sdl2::HapticSubsystem
source · pub struct HapticSubsystem { /* private fields */ }
Implementations
sourceimpl HapticSubsystem
impl HapticSubsystem
sourcepub fn open_from_joystick_id(
&self,
joystick_index: u32
) -> Result<Haptic, IntegerOrSdlError>
pub fn open_from_joystick_id(
&self,
joystick_index: u32
) -> Result<Haptic, IntegerOrSdlError>
Attempt to open the joystick at index joystick_index
and return its haptic device.
Trait Implementations
sourceimpl Clone for HapticSubsystem
impl Clone for HapticSubsystem
sourcefn clone(&self) -> HapticSubsystem
fn clone(&self) -> HapticSubsystem
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for HapticSubsystem
impl !Send for HapticSubsystem
impl !Sync for HapticSubsystem
impl Unpin for HapticSubsystem
impl UnwindSafe for HapticSubsystem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more