[][src]Struct web_sys::UsbControlTransferParameters

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

The UsbControlTransferParameters dictionary.

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

This API is unstable and requires --cfg=web_sys_unstable_apis to be activated, as described in the wasm-bindgen guide

Implementations

impl UsbControlTransferParameters[src]

pub fn new(
    index: u16,
    recipient: UsbRecipient,
    request: u8,
    request_type: UsbRequestType,
    value: u16
) -> Self
[src]

Construct a new UsbControlTransferParameters.

This API requires the following crate features to be activated: UsbControlTransferParameters, UsbRecipient, UsbRequestType

This API is unstable and requires --cfg=web_sys_unstable_apis to be activated, as described in the wasm-bindgen guide

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

Change the index field of this object.

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

This API is unstable and requires --cfg=web_sys_unstable_apis to be activated, as described in the wasm-bindgen guide

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

Change the recipient field of this object.

This API requires the following crate features to be activated: UsbControlTransferParameters, UsbRecipient

This API is unstable and requires --cfg=web_sys_unstable_apis to be activated, as described in the wasm-bindgen guide

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

Change the request field of this object.

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

This API is unstable and requires --cfg=web_sys_unstable_apis to be activated, as described in the wasm-bindgen guide

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

Change the requestType field of this object.

This API requires the following crate features to be activated: UsbControlTransferParameters, UsbRequestType

This API is unstable and requires --cfg=web_sys_unstable_apis to be activated, as described in the wasm-bindgen guide

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

Change the value field of this object.

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

This API is unstable and requires --cfg=web_sys_unstable_apis to be activated, as described in the wasm-bindgen guide

Trait Implementations

impl AsRef<JsValue> for UsbControlTransferParameters[src]

impl AsRef<Object> for UsbControlTransferParameters[src]

impl AsRef<UsbControlTransferParameters> for UsbControlTransferParameters[src]

impl Clone for UsbControlTransferParameters[src]

impl Debug for UsbControlTransferParameters[src]

impl Deref for UsbControlTransferParameters[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for UsbControlTransferParameters[src]

impl From<JsValue> for UsbControlTransferParameters[src]

impl From<UsbControlTransferParameters> for JsValue[src]

impl From<UsbControlTransferParameters> for Object[src]

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

impl OptionFromWasmAbi for UsbControlTransferParameters[src]

impl OptionIntoWasmAbi for UsbControlTransferParameters[src]

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

impl PartialEq<UsbControlTransferParameters> for UsbControlTransferParameters[src]

impl RefFromWasmAbi for UsbControlTransferParameters[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<UsbControlTransferParameters>

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

impl StructuralPartialEq for UsbControlTransferParameters[src]

impl WasmDescribe for UsbControlTransferParameters[src]

Auto Trait Implementations

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.