pub(crate) trait BluetoothRemoteGATTServerMethods<D: DomTypes> {
    // Required methods
    fn Device(&self) -> DomRoot<D::BluetoothDevice>;
    fn Connected(&self) -> bool;
    fn Connect(&self, _comp: InRealm<'_>, _can_gc: CanGc) -> Rc<D::Promise>;
    fn Disconnect(&self, _can_gc: CanGc) -> Fallible<()>;
    fn GetPrimaryService(
        &self,
        service: StringOrUnsignedLong,
        _can_gc: CanGc,
    ) -> Rc<D::Promise>;
    fn GetPrimaryServices(
        &self,
        service: Option<StringOrUnsignedLong>,
        _can_gc: CanGc,
    ) -> Rc<D::Promise>;
}

Required Methods§

Source

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

Source

fn Connected(&self) -> bool

Source

fn Connect(&self, _comp: InRealm<'_>, _can_gc: CanGc) -> Rc<D::Promise>

Source

fn Disconnect(&self, _can_gc: CanGc) -> Fallible<()>

Source

fn GetPrimaryService( &self, service: StringOrUnsignedLong, _can_gc: CanGc, ) -> Rc<D::Promise>

Source

fn GetPrimaryServices( &self, service: Option<StringOrUnsignedLong>, _can_gc: CanGc, ) -> Rc<D::Promise>

Implementors§