pub(crate) type BluetoothAdvertisingEventInit = BluetoothAdvertisingEventInit<DomTypeHolder>;
Aliased Type§
struct BluetoothAdvertisingEventInit {
pub(crate) parent: EventInit,
pub(crate) appearance: Option<u16>,
pub(crate) device: Root<Dom<BluetoothDevice>>,
pub(crate) name: Option<DOMString>,
pub(crate) rssi: Option<i8>,
pub(crate) txPower: Option<i8>,
}
Fields§
§parent: EventInit
§appearance: Option<u16>
§device: Root<Dom<BluetoothDevice>>
§name: Option<DOMString>
§rssi: Option<i8>
§txPower: Option<i8>
Implementations
Source§impl<D: DomTypes> BluetoothAdvertisingEventInit<D>
impl<D: DomTypes> BluetoothAdvertisingEventInit<D>
pub(crate) unsafe fn to_jsobject( &self, cx: *mut JSContext, obj: MutableHandleObject<'_>, )
Source§impl<D: DomTypes> BluetoothAdvertisingEventInit<D>
impl<D: DomTypes> BluetoothAdvertisingEventInit<D>
pub(crate) fn new( cx: SafeJSContext, val: HandleValue<'_>, ) -> Result<ConversionResult<BluetoothAdvertisingEventInit<D>>, ()>
Trait Implementations
Source§impl<D: DomTypes> FromJSValConvertible for BluetoothAdvertisingEventInit<D>
impl<D: DomTypes> FromJSValConvertible for BluetoothAdvertisingEventInit<D>
Source§unsafe fn from_jsval(
cx: *mut JSContext,
value: HandleValue<'_>,
_option: (),
) -> Result<ConversionResult<BluetoothAdvertisingEventInit<D>>, ()>
unsafe fn from_jsval( cx: *mut JSContext, value: HandleValue<'_>, _option: (), ) -> Result<ConversionResult<BluetoothAdvertisingEventInit<D>>, ()>
Convert
val
to type Self
.
Optional configuration of type T
can be passed as the option
argument.
If it returns Err(())
, a JSAPI exception is pending.
If it returns Ok(Failure(reason))
, there is no pending JSAPI exception.