BluetoothRemoteGATTServerMethods

pub trait BluetoothRemoteGATTServerMethods<D: DomTypes> {
    // Required methods
    fn Device(&self) -> DomRoot<D::BluetoothDevice>;
    fn Connected(&self) -> bool;
    fn Connect(&self, realm: &mut CurrentRealm<'_>) -> Rc<D::Promise>;
    fn Disconnect(&self, cx: &mut JSContext) -> Fallible<()>;
    fn GetPrimaryService(
        &self,
        realm: &mut CurrentRealm<'_>,
        service: StringOrUnsignedLong,
    ) -> Rc<D::Promise>;
    fn GetPrimaryServices(
        &self,
        realm: &mut CurrentRealm<'_>,
        service: Option<StringOrUnsignedLong>,
    ) -> Rc<D::Promise>;
}

Required Methods§

Source

fn Device(&self) -> DomRoot<D::BluetoothDevice>

Source

fn Connected(&self) -> bool

Source

fn Connect(&self, realm: &mut CurrentRealm<'_>) -> Rc<D::Promise>

Source

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

Source

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

Source

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

Implementors§