#[non_exhaustive]pub enum Haptic {
Selection,
Impact(HapticImpact),
Notification(HapticNotification),
}Expand description
A haptic the device plays (Command::Haptic, TS: Haptics of
nsh/mobile): grouped as UIKit’s feedback generators and Expo’s API —
a selection that changed, an impact by weight, a task’s outcome. On
Android it is the view’s haptic feedback. What the user feels follows
the device and its settings: none with haptics turned off, or on
hardware without them.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Selection
A selection changed: a picker’s value, a segment, a slider’s step
(Haptics.selection()).
Impact(HapticImpact)
An element collided; the style is its weight (Haptics.impact).
Notification(HapticNotification)
A task ended (Haptics.notification).
Trait Implementations§
impl Copy for Haptic
impl Eq for Haptic
impl StructuralPartialEq for Haptic
Auto Trait Implementations§
impl Forget for Haptic
impl Freeze for Haptic
impl Move for Haptic
impl RefUnwindSafe for Haptic
impl Send for Haptic
impl Sync for Haptic
impl Unpin for Haptic
impl UnsafeUnpin for Haptic
impl UnwindSafe for Haptic
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