[][src]Struct web_sys::BluetoothAdvertisingEventInit

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

The BluetoothAdvertisingEventInit dictionary.

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

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

Implementations

impl BluetoothAdvertisingEventInit[src]

pub fn new(device: &BluetoothDevice) -> Self[src]

Construct a new BluetoothAdvertisingEventInit.

This API requires the following crate features to be activated: BluetoothAdvertisingEventInit, BluetoothDevice

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

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: BluetoothAdvertisingEventInit

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

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: BluetoothAdvertisingEventInit

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

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: BluetoothAdvertisingEventInit

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

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

Change the appearance field of this object.

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

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

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

Change the device field of this object.

This API requires the following crate features to be activated: BluetoothAdvertisingEventInit, BluetoothDevice

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

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

Change the manufacturerData field of this object.

This API requires the following crate features to be activated: BluetoothAdvertisingEventInit, BluetoothManufacturerDataMap

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

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

Change the name field of this object.

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

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

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

Change the rssi field of this object.

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

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

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

Change the serviceData field of this object.

This API requires the following crate features to be activated: BluetoothAdvertisingEventInit, BluetoothServiceDataMap

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

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

Change the txPower field of this object.

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

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

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

Change the uuids field of this object.

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

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

impl AsRef<JsValue> for BluetoothAdvertisingEventInit[src]

impl AsRef<Object> for BluetoothAdvertisingEventInit[src]

impl Clone for BluetoothAdvertisingEventInit[src]

impl Debug for BluetoothAdvertisingEventInit[src]

impl Deref for BluetoothAdvertisingEventInit[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for BluetoothAdvertisingEventInit[src]

impl From<BluetoothAdvertisingEventInit> for JsValue[src]

impl From<BluetoothAdvertisingEventInit> for Object[src]

impl From<JsValue> for BluetoothAdvertisingEventInit[src]

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

impl OptionFromWasmAbi for BluetoothAdvertisingEventInit[src]

impl OptionIntoWasmAbi for BluetoothAdvertisingEventInit[src]

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

impl PartialEq<BluetoothAdvertisingEventInit> for BluetoothAdvertisingEventInit[src]

impl RefFromWasmAbi for BluetoothAdvertisingEventInit[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<BluetoothAdvertisingEventInit>

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

impl StructuralPartialEq for BluetoothAdvertisingEventInit[src]

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