pub enum Haptic {
Light,
Medium,
Heavy,
Success,
Warning,
Error,
Selection,
}Expand description
A haptic-feedback style, modeled on iOS’s three feedback-generator families so the same call maps to a sensible native pattern everywhere.
Variants§
Light
A light impact — the subtlest bump.
Medium
A medium impact.
Heavy
A heavy impact — the most forceful bump.
Success
A “task succeeded” notification.
Warning
A “something needs attention” notification.
Error
A “task failed” notification.
Selection
A selection changed (a value ticked past a detent).
Trait Implementations§
impl Copy for Haptic
impl Eq for Haptic
impl StructuralPartialEq for Haptic
Auto Trait Implementations§
impl Freeze 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