[][src]Struct web_sys::UsbPermissionResult

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

The UsbPermissionResult class.

MDN Documentation

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

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

Implementations

impl UsbPermissionResult[src]

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

Getter for the devices field of this object.

MDN Documentation

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

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

impl UsbPermissionResult[src]

pub fn set_devices(&self, value: &JsValue)[src]

Setter for the devices field of this object.

MDN Documentation

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

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

Methods from Deref<Target = PermissionStatus>

pub fn state(&self) -> PermissionState[src]

Getter for the state field of this object.

MDN Documentation

This API requires the following crate features to be activated: PermissionState, PermissionStatus

pub fn onchange(&self) -> Option<Function>[src]

Getter for the onchange field of this object.

MDN Documentation

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

pub fn set_onchange(&self, value: Option<&Function>)[src]

Setter for the onchange field of this object.

MDN Documentation

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

Trait Implementations

impl AsRef<EventTarget> for UsbPermissionResult[src]

impl AsRef<JsValue> for UsbPermissionResult[src]

impl AsRef<Object> for UsbPermissionResult[src]

impl AsRef<PermissionStatus> for UsbPermissionResult[src]

impl AsRef<UsbPermissionResult> for UsbPermissionResult[src]

impl Clone for UsbPermissionResult[src]

impl Debug for UsbPermissionResult[src]

impl Deref for UsbPermissionResult[src]

type Target = PermissionStatus

The resulting type after dereferencing.

impl Eq for UsbPermissionResult[src]

impl From<JsValue> for UsbPermissionResult[src]

impl From<UsbPermissionResult> for JsValue[src]

impl From<UsbPermissionResult> for PermissionStatus[src]

impl From<UsbPermissionResult> for EventTarget[src]

impl From<UsbPermissionResult> for Object[src]

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

impl OptionFromWasmAbi for UsbPermissionResult[src]

impl OptionIntoWasmAbi for UsbPermissionResult[src]

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

impl PartialEq<UsbPermissionResult> for UsbPermissionResult[src]

impl RefFromWasmAbi for UsbPermissionResult[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<UsbPermissionResult>

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

impl StructuralPartialEq for UsbPermissionResult[src]

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