Struct
HapticsApi
pub struct HapticsApi<P: CheckedPermissions> { /* private fields */ }Implementations
impl<P: CheckedPermissions> HapticsApi<P>
impl<P: CheckedPermissions> HapticsApi<P>
pub fn try_new_with_timeout(timeout: Duration) -> Option<Self>
pub fn click(&self)where
P: MessageAllowed<Vibrate>,
pub fn triple_click(&self)where
P: MessageAllowed<Vibrate>,
pub fn strong_click(&self)where
P: MessageAllowed<Vibrate>,
pub fn double_click(&self)where
P: MessageAllowed<Vibrate>,
pub fn vibrate(&self, haptic_pattern: HapticPattern)where
P: MessageAllowed<Vibrate>,
Trait Implementations
impl<P: Default + CheckedPermissions> Default for HapticsApi<P>
impl<P: Default + CheckedPermissions> Default for HapticsApi<P>
fn default() -> HapticsApi<P>
fn default() -> HapticsApi<P>
Returns the “default value” for a type. Read more