BluetoothMethods

pub trait BluetoothMethods<D>
where D: DomTypes,
{ // Required methods fn GetAvailability( &self, realm: &mut CurrentRealm<'_>, ) -> Rc<<D as DomTypes>::Promise>; fn GetOnavailabilitychanged( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>; fn SetOnavailabilitychanged( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, ); fn RequestDevice( &self, realm: &mut CurrentRealm<'_>, options: &RequestDeviceOptions, ) -> Rc<<D as DomTypes>::Promise>; }

Required Methods§

Source

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

Source

fn GetOnavailabilitychanged( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>

Source

fn SetOnavailabilitychanged( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, )

Source

fn RequestDevice( &self, realm: &mut CurrentRealm<'_>, options: &RequestDeviceOptions, ) -> Rc<<D as DomTypes>::Promise>

Implementors§