pub trait BluetoothRemoteGATTCharacteristicMethods<D: DomTypes> {
// Required methods
fn Service(&self) -> DomRoot<D::BluetoothRemoteGATTService>;
fn Uuid(&self) -> DOMString;
fn Properties(&self) -> DomRoot<D::BluetoothCharacteristicProperties>;
fn GetValue(&self) -> Option<ByteString>;
fn GetDescriptor(
&self,
realm: &mut CurrentRealm<'_>,
descriptor: StringOrUnsignedLong,
) -> <D::Promise as PromiseHelpers<D>>::StackRoot;
fn GetDescriptors(
&self,
realm: &mut CurrentRealm<'_>,
descriptor: Option<StringOrUnsignedLong>,
) -> <D::Promise as PromiseHelpers<D>>::StackRoot;
fn ReadValue(
&self,
realm: &mut CurrentRealm<'_>,
) -> <D::Promise as PromiseHelpers<D>>::StackRoot;
fn WriteValue(
&self,
realm: &mut CurrentRealm<'_>,
value: ArrayBufferViewOrArrayBuffer,
) -> <D::Promise as PromiseHelpers<D>>::StackRoot;
fn StartNotifications(
&self,
realm: &mut CurrentRealm<'_>,
) -> <D::Promise as PromiseHelpers<D>>::StackRoot;
fn StopNotifications(
&self,
realm: &mut CurrentRealm<'_>,
) -> <D::Promise as PromiseHelpers<D>>::StackRoot;
fn GetOncharacteristicvaluechanged(
&self,
cx: &mut JSContext,
) -> Option<RootedCallback<EventHandlerNonNull<D>>>;
fn SetOncharacteristicvaluechanged(
&self,
cx: &mut JSContext,
value: Option<RootedCallback<EventHandlerNonNull<D>>>,
);
}Required Methods§
fn Service(&self) -> DomRoot<D::BluetoothRemoteGATTService>
fn Uuid(&self) -> DOMString
fn Properties(&self) -> DomRoot<D::BluetoothCharacteristicProperties>
fn GetValue(&self) -> Option<ByteString>
fn GetDescriptor( &self, realm: &mut CurrentRealm<'_>, descriptor: StringOrUnsignedLong, ) -> <D::Promise as PromiseHelpers<D>>::StackRoot
fn GetDescriptors( &self, realm: &mut CurrentRealm<'_>, descriptor: Option<StringOrUnsignedLong>, ) -> <D::Promise as PromiseHelpers<D>>::StackRoot
fn ReadValue( &self, realm: &mut CurrentRealm<'_>, ) -> <D::Promise as PromiseHelpers<D>>::StackRoot
fn WriteValue( &self, realm: &mut CurrentRealm<'_>, value: ArrayBufferViewOrArrayBuffer, ) -> <D::Promise as PromiseHelpers<D>>::StackRoot
fn StartNotifications( &self, realm: &mut CurrentRealm<'_>, ) -> <D::Promise as PromiseHelpers<D>>::StackRoot
fn StopNotifications( &self, realm: &mut CurrentRealm<'_>, ) -> <D::Promise as PromiseHelpers<D>>::StackRoot
fn GetOncharacteristicvaluechanged( &self, cx: &mut JSContext, ) -> Option<RootedCallback<EventHandlerNonNull<D>>>
fn SetOncharacteristicvaluechanged( &self, cx: &mut JSContext, value: Option<RootedCallback<EventHandlerNonNull<D>>>, )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".