[][src]Struct web_sys::BluetoothPermissionResult

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

The BluetoothPermissionResult class.

MDN Documentation

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

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

Implementations

impl BluetoothPermissionResult[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: BluetoothPermissionResult

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

impl BluetoothPermissionResult[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: BluetoothPermissionResult

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<BluetoothPermissionResult> for BluetoothPermissionResult[src]

impl AsRef<EventTarget> for BluetoothPermissionResult[src]

impl AsRef<JsValue> for BluetoothPermissionResult[src]

impl AsRef<Object> for BluetoothPermissionResult[src]

impl AsRef<PermissionStatus> for BluetoothPermissionResult[src]

impl Clone for BluetoothPermissionResult[src]

impl Debug for BluetoothPermissionResult[src]

impl Deref for BluetoothPermissionResult[src]

type Target = PermissionStatus

The resulting type after dereferencing.

impl Eq for BluetoothPermissionResult[src]

impl From<BluetoothPermissionResult> for JsValue[src]

impl From<BluetoothPermissionResult> for PermissionStatus[src]

impl From<BluetoothPermissionResult> for EventTarget[src]

impl From<BluetoothPermissionResult> for Object[src]

impl From<JsValue> for BluetoothPermissionResult[src]

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

impl OptionFromWasmAbi for BluetoothPermissionResult[src]

impl OptionIntoWasmAbi for BluetoothPermissionResult[src]

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

impl PartialEq<BluetoothPermissionResult> for BluetoothPermissionResult[src]

impl RefFromWasmAbi for BluetoothPermissionResult[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<BluetoothPermissionResult>

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

impl StructuralPartialEq for BluetoothPermissionResult[src]

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