Skip to main content

BluetoothRemoteGATTCharacteristicMethods

Trait BluetoothRemoteGATTCharacteristicMethods 

Source
pub trait BluetoothRemoteGATTCharacteristicMethods<D>
where D: DomTypes,
{ // Required methods fn Service(&self) -> Root<Dom<<D as DomTypes>::BluetoothRemoteGATTService>>; fn Uuid(&self) -> DOMString; fn Properties( &self, ) -> Root<Dom<<D as DomTypes>::BluetoothCharacteristicProperties>>; fn GetValue(&self) -> Option<ByteString>; fn GetDescriptor( &self, realm: &mut CurrentRealm<'_>, descriptor: StringOrUnsignedLong, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot; fn GetDescriptors( &self, realm: &mut CurrentRealm<'_>, descriptor: Option<StringOrUnsignedLong>, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot; fn ReadValue( &self, realm: &mut CurrentRealm<'_>, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot; fn WriteValue( &self, realm: &mut CurrentRealm<'_>, value: ArrayBufferViewOrArrayBuffer, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot; fn StartNotifications( &self, realm: &mut CurrentRealm<'_>, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot; fn StopNotifications( &self, realm: &mut CurrentRealm<'_>, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot; fn GetOncharacteristicvaluechanged( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>; fn SetOncharacteristicvaluechanged( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, ); }

Required Methods§

Implementors§