[][src]Struct web_sys::GamepadEventInit

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

The GamepadEventInit dictionary.

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

Methods

impl GamepadEventInit[src]

pub fn new() -> Self[src]

Construct a new GamepadEventInit.

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

pub fn bubbles(&mut self, val: bool) -> &mut Self[src]

Change the bubbles field of this object.

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

pub fn cancelable(&mut self, val: bool) -> &mut Self[src]

Change the cancelable field of this object.

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

pub fn composed(&mut self, val: bool) -> &mut Self[src]

Change the composed field of this object.

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

pub fn gamepad(&mut self, val: Option<&Gamepad>) -> &mut Self[src]

Change the gamepad field of this object.

This API requires the following crate features to be activated: Gamepad, GamepadEventInit

Trait Implementations

impl AsRef<GamepadEventInit> for GamepadEventInit[src]

impl AsRef<JsValue> for GamepadEventInit[src]

impl AsRef<Object> for GamepadEventInit[src]

impl Clone for GamepadEventInit[src]

impl Debug for GamepadEventInit[src]

impl Deref for GamepadEventInit[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for GamepadEventInit[src]

impl From<GamepadEventInit> for JsValue[src]

impl From<GamepadEventInit> for Object[src]

impl From<JsValue> for GamepadEventInit[src]

impl FromWasmAbi for GamepadEventInit[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 GamepadEventInit[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 GamepadEventInit[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 GamepadEventInit[src]

impl OptionFromWasmAbi for GamepadEventInit[src]

impl OptionIntoWasmAbi for GamepadEventInit[src]

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

impl PartialEq<GamepadEventInit> for GamepadEventInit[src]

impl RefFromWasmAbi for GamepadEventInit[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<GamepadEventInit>

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 GamepadEventInit[src]

impl StructuralPartialEq for GamepadEventInit[src]

impl WasmDescribe for GamepadEventInit[src]

Auto Trait Implementations

impl RefUnwindSafe for GamepadEventInit

impl !Send for GamepadEventInit

impl !Sync for GamepadEventInit

impl Unpin for GamepadEventInit

impl UnwindSafe for GamepadEventInit

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.