#[non_exhaustive]pub enum HapticNotification {
Success,
Warning,
Error,
}Expand description
How a task ended (Haptic::Notification, TS: Haptics.notification’s
argument: "success", "warning", "error").
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for HapticNotification
impl Clone for HapticNotification
impl Copy for HapticNotification
Source§impl Debug for HapticNotification
impl Debug for HapticNotification
impl Eq for HapticNotification
Source§impl Hash for HapticNotification
impl Hash for HapticNotification
Source§impl HostValue for HapticNotification
impl HostValue for HapticNotification
Source§impl JsValue for HapticNotification
impl JsValue for HapticNotification
Source§impl PartialEq for HapticNotification
impl PartialEq for HapticNotification
Source§impl PropEnum for HapticNotification
impl PropEnum for HapticNotification
impl StructuralPartialEq for HapticNotification
Auto Trait Implementations§
impl Forget for HapticNotification
impl Freeze for HapticNotification
impl Move for HapticNotification
impl RefUnwindSafe for HapticNotification
impl Send for HapticNotification
impl Sync for HapticNotification
impl Unpin for HapticNotification
impl UnsafeUnpin for HapticNotification
impl UnwindSafe for HapticNotification
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> CallbackArgs for Twhere
T: Ret,
impl<T> CallbackArgs for Twhere
T: Ret,
Source§fn ts_params(types: &mut TsTypes, names: &[&str]) -> String
fn ts_params(types: &mut TsTypes, names: &[&str]) -> String
Its TypeScript parameters, named
names (name: string, amount: number), or without names value for one and a, b, … for
several.Source§fn into_js_args<'a>(
self,
host: &'a dyn JsHost,
) -> Result<Vec<JsOwned<'a>>, PropError>
fn into_js_args<'a>( self, host: &'a dyn JsHost, ) -> Result<Vec<JsOwned<'a>>, PropError>
The arguments as JS values.