pub trait BluetoothDeviceMethods<D>where
D: DomTypes,{
// Required methods
fn Id(&self) -> DOMString;
fn GetName(&self) -> Option<DOMString>;
fn GetGatt(
&self,
cx: &mut JSContext,
) -> Option<Root<Dom<<D as DomTypes>::BluetoothRemoteGATTServer>>>;
fn WatchAdvertisements(
&self,
realm: &mut CurrentRealm<'_>,
) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot;
fn UnwatchAdvertisements(&self);
fn WatchingAdvertisements(&self) -> bool;
fn GetOngattserverdisconnected(
&self,
cx: &mut JSContext,
) -> Option<RootedCallback<EventHandlerNonNull<D>>>;
fn SetOngattserverdisconnected(
&self,
cx: &mut JSContext,
value: Option<RootedCallback<EventHandlerNonNull<D>>>,
);
}Required Methods§
fn Id(&self) -> DOMString
fn GetName(&self) -> Option<DOMString>
fn GetGatt( &self, cx: &mut JSContext, ) -> Option<Root<Dom<<D as DomTypes>::BluetoothRemoteGATTServer>>>
fn WatchAdvertisements( &self, realm: &mut CurrentRealm<'_>, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot
fn UnwatchAdvertisements(&self)
fn WatchingAdvertisements(&self) -> bool
fn GetOngattserverdisconnected( &self, cx: &mut JSContext, ) -> Option<RootedCallback<EventHandlerNonNull<D>>>
fn SetOngattserverdisconnected( &self, cx: &mut JSContext, value: Option<RootedCallback<EventHandlerNonNull<D>>>, )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".