Skip to main content

BluetoothRemoteGATTServerMethods

pub trait BluetoothRemoteGATTServerMethods<D>
where D: DomTypes,
{ // Required methods fn Device(&self) -> Root<Dom<<D as DomTypes>::BluetoothDevice>>; fn Connected(&self) -> bool; fn Connect( &self, realm: &mut CurrentRealm<'_>, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot; fn Disconnect(&self, cx: &mut JSContext) -> Result<(), Error>; fn GetPrimaryService( &self, realm: &mut CurrentRealm<'_>, service: StringOrUnsignedLong, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot; fn GetPrimaryServices( &self, realm: &mut CurrentRealm<'_>, service: Option<StringOrUnsignedLong>, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot; }

Required Methods§

Source

fn Device(&self) -> Root<Dom<<D as DomTypes>::BluetoothDevice>>

Source

fn Connected(&self) -> bool

Source

fn Connect( &self, realm: &mut CurrentRealm<'_>, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot

Source

fn Disconnect(&self, cx: &mut JSContext) -> Result<(), Error>

Source

fn GetPrimaryService( &self, realm: &mut CurrentRealm<'_>, service: StringOrUnsignedLong, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot

Source

fn GetPrimaryServices( &self, realm: &mut CurrentRealm<'_>, service: Option<StringOrUnsignedLong>, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot

Implementors§