BluetoothRemoteGATTServiceMethods

pub trait BluetoothRemoteGATTServiceMethods<D>
where D: DomTypes,
{
Show 13 methods // Required methods fn Device(&self) -> Root<Dom<<D as DomTypes>::BluetoothDevice>>; fn Uuid(&self) -> DOMString; fn IsPrimary(&self) -> bool; fn GetCharacteristic( &self, realm: &mut CurrentRealm<'_>, characteristic: StringOrUnsignedLong, ) -> Rc<<D as DomTypes>::Promise>; fn GetCharacteristics( &self, realm: &mut CurrentRealm<'_>, characteristic: Option<StringOrUnsignedLong>, ) -> Rc<<D as DomTypes>::Promise>; fn GetIncludedService( &self, realm: &mut CurrentRealm<'_>, service: StringOrUnsignedLong, ) -> Rc<<D as DomTypes>::Promise>; fn GetIncludedServices( &self, realm: &mut CurrentRealm<'_>, service: Option<StringOrUnsignedLong>, ) -> Rc<<D as DomTypes>::Promise>; fn GetOnserviceadded( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>; fn SetOnserviceadded( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, ); fn GetOnservicechanged( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>; fn SetOnservicechanged( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, ); fn GetOnserviceremoved( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>; fn SetOnserviceremoved( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, );
}

Required Methods§

Source

fn Device(&self) -> Root<Dom<<D as DomTypes>::BluetoothDevice>>

Source

fn Uuid(&self) -> DOMString

Source

fn IsPrimary(&self) -> bool

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Implementors§