Trait script::dom::bindings::codegen::Bindings::BluetoothAdvertisingEventBinding::BluetoothAdvertisingEvent_Binding::BluetoothAdvertisingEventMethods
source · pub trait BluetoothAdvertisingEventMethods {
// Required methods
fn Device(&self) -> Root<Dom<BluetoothDevice>>;
fn GetName(&self) -> Option<DOMString>;
fn GetAppearance(&self) -> Option<u16>;
fn GetTxPower(&self) -> Option<i8>;
fn GetRssi(&self) -> Option<i8>;
fn IsTrusted(&self) -> bool;
fn Constructor(
global: &Window,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
type_: DOMString,
init: &BluetoothAdvertisingEventInit,
) -> Result<Root<Dom<BluetoothAdvertisingEvent>>, Error>;
}
Required Methods§
fn Device(&self) -> Root<Dom<BluetoothDevice>>
fn GetName(&self) -> Option<DOMString>
fn GetAppearance(&self) -> Option<u16>
fn GetTxPower(&self) -> Option<i8>
fn GetRssi(&self) -> Option<i8>
fn IsTrusted(&self) -> bool
fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, type_: DOMString, init: &BluetoothAdvertisingEventInit, ) -> Result<Root<Dom<BluetoothAdvertisingEvent>>, Error>
Object Safety§
This trait is not object safe.