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<RootedCallback<EventHandlerNonNull<D>>>;
fn SetOncharacteristicvaluechanged(
&self,
cx: &mut JSContext,
value: Option<RootedCallback<EventHandlerNonNull<D>>>,
);
}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<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".