[][src]Struct web_sys::GamepadHapticActuator

#[repr(transparent)]pub struct GamepadHapticActuator { /* fields omitted */ }

The GamepadHapticActuator class.

MDN Documentation

This API requires the following crate features to be activated: GamepadHapticActuator

Methods

impl GamepadHapticActuator[src]

pub fn type_(&self) -> GamepadHapticActuatorType[src]

Getter for the type field of this object.

MDN Documentation

This API requires the following crate features to be activated: GamepadHapticActuator, GamepadHapticActuatorType

impl GamepadHapticActuator[src]

pub fn pulse(&self, value: f64, duration: f64) -> Result<Promise, JsValue>[src]

The pulse() method.

MDN Documentation

This API requires the following crate features to be activated: GamepadHapticActuator

Trait Implementations

impl AsRef<GamepadHapticActuator> for GamepadHapticActuator[src]

impl AsRef<JsValue> for GamepadHapticActuator[src]

impl AsRef<Object> for GamepadHapticActuator[src]

impl Clone for GamepadHapticActuator[src]

impl Debug for GamepadHapticActuator[src]

impl Deref for GamepadHapticActuator[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for GamepadHapticActuator[src]

impl From<GamepadHapticActuator> for JsValue[src]

impl From<GamepadHapticActuator> for Object[src]

impl From<JsValue> for GamepadHapticActuator[src]

impl FromWasmAbi for GamepadHapticActuator[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for GamepadHapticActuator[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a GamepadHapticActuator[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for GamepadHapticActuator[src]

impl OptionFromWasmAbi for GamepadHapticActuator[src]

impl OptionIntoWasmAbi for GamepadHapticActuator[src]

impl<'a> OptionIntoWasmAbi for &'a GamepadHapticActuator[src]

impl PartialEq<GamepadHapticActuator> for GamepadHapticActuator[src]

impl RefFromWasmAbi for GamepadHapticActuator[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<GamepadHapticActuator>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl StructuralEq for GamepadHapticActuator[src]

impl StructuralPartialEq for GamepadHapticActuator[src]

impl WasmDescribe for GamepadHapticActuator[src]

Auto Trait Implementations

impl RefUnwindSafe for GamepadHapticActuator

impl !Send for GamepadHapticActuator

impl !Sync for GamepadHapticActuator

impl Unpin for GamepadHapticActuator

impl UnwindSafe for GamepadHapticActuator

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.