pub struct Haptics<R: Runtime>(/* private fields */);Expand description
Access to the haptics APIs.
Implementations§
Source§impl<R: Runtime> Haptics<R>
impl<R: Runtime> Haptics<R>
pub fn vibrate(&self, duration: u32) -> Result<()>
pub fn impact_feedback(&self, style: ImpactFeedbackStyle) -> Result<()>
pub fn notification_feedback( &self, type: NotificationFeedbackType, ) -> Result<()>
pub fn selection_feedback(&self) -> Result<()>
Auto Trait Implementations§
impl<R> Freeze for Haptics<R>
impl<R> !RefUnwindSafe for Haptics<R>
impl<R> Send for Haptics<R>
impl<R> Sync for Haptics<R>
impl<R> Unpin for Haptics<R>
impl<R> !UnwindSafe for Haptics<R>
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