pub trait BluetoothRemoteGATTServerMethods<D: DomTypes> {
    // 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>;
}

Required Methods§

source

fn Device(&self) -> Root<Dom<BluetoothDevice>>

source

fn Connected(&self) -> bool

source

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

source

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

source

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

source

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

Implementors§