Trait BluetoothRemoteGATTServiceMethods
Source pub trait BluetoothRemoteGATTServiceMethods<D>{
Show 13 methods
// Required methods
fn Device(&self) -> Root<Dom<<D as DomTypes>::BluetoothDevice>>;
fn Uuid(&self) -> DOMString;
fn IsPrimary(&self) -> bool;
fn GetCharacteristic(
&self,
realm: &mut CurrentRealm<'_>,
characteristic: StringOrUnsignedLong,
) -> Rc<<D as DomTypes>::Promise>;
fn GetCharacteristics(
&self,
realm: &mut CurrentRealm<'_>,
characteristic: Option<StringOrUnsignedLong>,
) -> Rc<<D as DomTypes>::Promise>;
fn GetIncludedService(
&self,
realm: &mut CurrentRealm<'_>,
service: StringOrUnsignedLong,
) -> Rc<<D as DomTypes>::Promise>;
fn GetIncludedServices(
&self,
realm: &mut CurrentRealm<'_>,
service: Option<StringOrUnsignedLong>,
) -> Rc<<D as DomTypes>::Promise>;
fn GetOnserviceadded(
&self,
cx: &mut JSContext,
) -> Option<Rc<EventHandlerNonNull<D>>>;
fn SetOnserviceadded(
&self,
cx: &mut JSContext,
value: Option<Rc<EventHandlerNonNull<D>>>,
);
fn GetOnservicechanged(
&self,
cx: &mut JSContext,
) -> Option<Rc<EventHandlerNonNull<D>>>;
fn SetOnservicechanged(
&self,
cx: &mut JSContext,
value: Option<Rc<EventHandlerNonNull<D>>>,
);
fn GetOnserviceremoved(
&self,
cx: &mut JSContext,
) -> Option<Rc<EventHandlerNonNull<D>>>;
fn SetOnserviceremoved(
&self,
cx: &mut JSContext,
value: Option<Rc<EventHandlerNonNull<D>>>,
);
}