[][src]Struct web_sys::UsbAlternateInterface

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

The UsbAlternateInterface class.

MDN Documentation

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

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

Implementations

impl UsbAlternateInterface[src]

pub fn alternate_setting(&self) -> u8[src]

Getter for the alternateSetting field of this object.

MDN Documentation

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

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

impl UsbAlternateInterface[src]

pub fn interface_class(&self) -> u8[src]

Getter for the interfaceClass field of this object.

MDN Documentation

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

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

impl UsbAlternateInterface[src]

pub fn interface_subclass(&self) -> u8[src]

Getter for the interfaceSubclass field of this object.

MDN Documentation

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

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

impl UsbAlternateInterface[src]

pub fn interface_protocol(&self) -> u8[src]

Getter for the interfaceProtocol field of this object.

MDN Documentation

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

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

impl UsbAlternateInterface[src]

pub fn interface_name(&self) -> Option<String>[src]

Getter for the interfaceName field of this object.

MDN Documentation

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

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

impl UsbAlternateInterface[src]

pub fn endpoints(&self) -> Array[src]

Getter for the endpoints field of this object.

MDN Documentation

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

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

impl AsRef<Object> for UsbAlternateInterface[src]

impl AsRef<UsbAlternateInterface> for UsbAlternateInterface[src]

impl Clone for UsbAlternateInterface[src]

impl Debug for UsbAlternateInterface[src]

impl Deref for UsbAlternateInterface[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for UsbAlternateInterface[src]

impl From<JsValue> for UsbAlternateInterface[src]

impl From<UsbAlternateInterface> for JsValue[src]

impl From<UsbAlternateInterface> for Object[src]

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

impl OptionFromWasmAbi for UsbAlternateInterface[src]

impl OptionIntoWasmAbi for UsbAlternateInterface[src]

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

impl PartialEq<UsbAlternateInterface> for UsbAlternateInterface[src]

impl RefFromWasmAbi for UsbAlternateInterface[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<UsbAlternateInterface>

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

impl StructuralPartialEq for UsbAlternateInterface[src]

impl WasmDescribe for UsbAlternateInterface[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.