pub enum ImpactFeedbackStyle {
Light,
Medium,
Heavy,
Soft,
Rigid,
}Expand description
The style of an impact-feedback haptic.
On iOS this maps directly to a UIImpactFeedbackGenerator.FeedbackStyle case. On Android,
which has no equivalent system API, each style instead plays a distinct vibration waveform of
increasing intensity. Has no effect on desktop platforms. Defaults to Medium.
Variants§
Light
A collision between small, light user interface elements.
Medium
A collision between moderately sized user interface elements.
Heavy
A collision between large, heavy user interface elements.
Soft
A soft, muted impact between user interface elements.
Rigid
A sharp, rigid impact between user interface elements.
Trait Implementations§
Source§impl Clone for ImpactFeedbackStyle
impl Clone for ImpactFeedbackStyle
Source§impl Debug for ImpactFeedbackStyle
impl Debug for ImpactFeedbackStyle
Source§impl Default for ImpactFeedbackStyle
impl Default for ImpactFeedbackStyle
Source§impl<'de> Deserialize<'de> for ImpactFeedbackStyle
impl<'de> Deserialize<'de> for ImpactFeedbackStyle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ImpactFeedbackStyle
Source§impl PartialEq for ImpactFeedbackStyle
impl PartialEq for ImpactFeedbackStyle
Source§impl Serialize for ImpactFeedbackStyle
impl Serialize for ImpactFeedbackStyle
impl StructuralPartialEq for ImpactFeedbackStyle
Auto Trait Implementations§
impl Freeze for ImpactFeedbackStyle
impl RefUnwindSafe for ImpactFeedbackStyle
impl Send for ImpactFeedbackStyle
impl Sync for ImpactFeedbackStyle
impl Unpin for ImpactFeedbackStyle
impl UnsafeUnpin for ImpactFeedbackStyle
impl UnwindSafe for ImpactFeedbackStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
Source§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.