Skip to main content

BluetoothMethods

pub trait BluetoothMethods<D: DomTypes> {
    // Required methods
    fn GetAvailability(
        &self,
        realm: &mut CurrentRealm<'_>,
    ) -> <D::Promise as PromiseHelpers<D>>::StackRoot;
    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,
    ) -> <D::Promise as PromiseHelpers<D>>::StackRoot;
}

Required Methods§

Source

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

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, ) -> <D::Promise as PromiseHelpers<D>>::StackRoot

Implementors§