Trait script::dom::bindings::codegen::Bindings::BluetoothRemoteGATTServerBinding::BluetoothRemoteGATTServer_Binding::BluetoothRemoteGATTServerMethods
source · pub trait BluetoothRemoteGATTServerMethods {
// Required methods
fn Device(&self) -> Root<Dom<BluetoothDevice>>;
fn Connected(&self) -> bool;
fn Connect(&self, _comp: InRealm<'_>, _can_gc: CanGc) -> Rc<Promise>;
fn Disconnect(&self, _can_gc: CanGc) -> Result<(), Error>;
fn GetPrimaryService(
&self,
service: StringOrUnsignedLong,
_can_gc: CanGc,
) -> Rc<Promise>;
fn GetPrimaryServices(
&self,
service: Option<StringOrUnsignedLong>,
_can_gc: CanGc,
) -> Rc<Promise>;
}