pub enum HapticFeedback {
ImpactLight,
ImpactMedium,
ImpactHeavy,
Selection,
Success,
Warning,
Error,
}Expand description
A haptic feedback event.
Variants§
ImpactLight
A light physical impact (e.g. a small control toggling).
ImpactMedium
A medium physical impact (e.g. a button press).
ImpactHeavy
A heavy physical impact (e.g. a large snap).
Selection
A selection change (e.g. scrubbing through a picker).
Success
A task completed successfully.
Warning
A warning.
Error
An error / rejected action.
Trait Implementations§
Source§impl Clone for HapticFeedback
impl Clone for HapticFeedback
Source§fn clone(&self) -> HapticFeedback
fn clone(&self) -> HapticFeedback
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HapticFeedback
Source§impl Debug for HapticFeedback
impl Debug for HapticFeedback
impl Eq for HapticFeedback
Source§impl PartialEq for HapticFeedback
impl PartialEq for HapticFeedback
Source§fn eq(&self, other: &HapticFeedback) -> bool
fn eq(&self, other: &HapticFeedback) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HapticFeedback
Auto Trait Implementations§
impl Freeze for HapticFeedback
impl RefUnwindSafe for HapticFeedback
impl Send for HapticFeedback
impl Sync for HapticFeedback
impl Unpin for HapticFeedback
impl UnsafeUnpin for HapticFeedback
impl UnwindSafe for HapticFeedback
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