BluetoothDeviceMethods

pub trait BluetoothDeviceMethods<D: DomTypes> {
    // Required methods
    fn Id(&self) -> DOMString;
    fn GetName(&self) -> Option<DOMString>;
    fn GetGatt(
        &self,
        cx: &mut JSContext,
    ) -> Option<DomRoot<D::BluetoothRemoteGATTServer>>;
    fn WatchAdvertisements(
        &self,
        realm: &mut CurrentRealm<'_>,
    ) -> Rc<D::Promise>;
    fn UnwatchAdvertisements(&self);
    fn WatchingAdvertisements(&self) -> bool;
    fn GetOngattserverdisconnected(&self) -> Option<Rc<EventHandlerNonNull<D>>>;
    fn SetOngattserverdisconnected(
        &self,
        value: Option<Rc<EventHandlerNonNull<D>>>,
    );
}

Required Methods§

Implementors§