Skip to main content

BluetoothRemoteGATTCharacteristicMethods

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

Required Methods§

Implementors§