pub enum NotificationFeedbackType {
Success,
Warning,
Error,
}Expand description
The type of notification feedback, indicating the outcome of a task or action.
On iOS this maps directly to a UINotificationFeedbackGenerator.FeedbackType case. On
Android, which has no equivalent system API, each type instead plays a distinct vibration
waveform. Has no effect on desktop platforms. Defaults to Success.
Variants§
Success
A task or action has completed successfully.
Warning
A task or action has produced a warning.
Error
A task or action has failed.
Trait Implementations§
Source§impl Clone for NotificationFeedbackType
impl Clone for NotificationFeedbackType
Source§impl Debug for NotificationFeedbackType
impl Debug for NotificationFeedbackType
Source§impl Default for NotificationFeedbackType
impl Default for NotificationFeedbackType
Source§impl<'de> Deserialize<'de> for NotificationFeedbackType
impl<'de> Deserialize<'de> for NotificationFeedbackType
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 NotificationFeedbackType
Source§impl PartialEq for NotificationFeedbackType
impl PartialEq for NotificationFeedbackType
Source§impl Serialize for NotificationFeedbackType
impl Serialize for NotificationFeedbackType
impl StructuralPartialEq for NotificationFeedbackType
Auto Trait Implementations§
impl Freeze for NotificationFeedbackType
impl RefUnwindSafe for NotificationFeedbackType
impl Send for NotificationFeedbackType
impl Sync for NotificationFeedbackType
impl Unpin for NotificationFeedbackType
impl UnsafeUnpin for NotificationFeedbackType
impl UnwindSafe for NotificationFeedbackType
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.