Struct sdl2::HapticSubsystem
source · pub struct HapticSubsystem { /* private fields */ }
Implementations§
source§impl 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§
source§impl Clone for HapticSubsystem
impl Clone for HapticSubsystem
source§fn clone(&self) -> HapticSubsystem
fn clone(&self) -> HapticSubsystem
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 moreAuto Trait Implementations§
impl Freeze for HapticSubsystem
impl RefUnwindSafe for HapticSubsystem
impl !Send for HapticSubsystem
impl !Sync for HapticSubsystem
impl Unpin for HapticSubsystem
impl UnwindSafe for HapticSubsystem
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)