pub enum HapticFeedbackType {
Vibrate,
LightImpact,
MediumImpact,
HeavyImpact,
SelectionClick,
SuccessNotification,
WarningNotification,
ErrorNotification,
}Expand description
The kind of haptic feedback to play.
Flutter counterpart: the HapticFeedbackType.* argument Dart sends with the
HapticFeedback.vibrate message on SystemChannels.platform. It lives here
because Platform names it.
Variants§
Vibrate
Vibration for a short duration, the argument-less HapticFeedback.vibrate.
LightImpact
A collision impact with a light mass.
MediumImpact
A collision impact with a medium mass.
HeavyImpact
A collision impact with a heavy mass.
SelectionClick
A selection changing through discrete values.
SuccessNotification
A task or action completed successfully.
WarningNotification
A task or action produced a warning.
ErrorNotification
A task or action failed.
Trait Implementations§
Source§impl Clone for HapticFeedbackType
impl Clone for HapticFeedbackType
impl Copy for HapticFeedbackType
Source§impl Debug for HapticFeedbackType
impl Debug for HapticFeedbackType
impl Eq for HapticFeedbackType
Source§impl Hash for HapticFeedbackType
impl Hash for HapticFeedbackType
Source§impl PartialEq for HapticFeedbackType
impl PartialEq for HapticFeedbackType
impl StructuralPartialEq for HapticFeedbackType
Auto Trait Implementations§
impl Freeze for HapticFeedbackType
impl RefUnwindSafe for HapticFeedbackType
impl Send for HapticFeedbackType
impl Sync for HapticFeedbackType
impl Unpin for HapticFeedbackType
impl UnsafeUnpin for HapticFeedbackType
impl UnwindSafe for HapticFeedbackType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.