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,
    ) -> Rc<D::Promise>;
    fn GetDescriptors(
        &self,
        realm: &mut CurrentRealm<'_>,
        descriptor: Option<StringOrUnsignedLong>,
    ) -> Rc<D::Promise>;
    fn ReadValue(&self, realm: &mut CurrentRealm<'_>) -> Rc<D::Promise>;
    fn WriteValue(
        &self,
        realm: &mut CurrentRealm<'_>,
        value: ArrayBufferViewOrArrayBuffer,
    ) -> Rc<D::Promise>;
    fn StartNotifications(&self, realm: &mut CurrentRealm<'_>) -> Rc<D::Promise>;
    fn StopNotifications(&self, realm: &mut CurrentRealm<'_>) -> Rc<D::Promise>;
    fn GetOncharacteristicvaluechanged(
        &self,
        cx: &mut JSContext,
    ) -> Option<Rc<EventHandlerNonNull<D>>>;
    fn SetOncharacteristicvaluechanged(
        &self,
        cx: &mut JSContext,
        value: Option<Rc<EventHandlerNonNull<D>>>,
    );
}

Required Methods§

Source

fn Service(&self) -> DomRoot<D::BluetoothRemoteGATTService>

Source

fn Uuid(&self) -> DOMString

Source

fn Properties(&self) -> DomRoot<D::BluetoothCharacteristicProperties>

Source

fn GetValue(&self) -> Option<ByteString>

Source

fn GetDescriptor( &self, realm: &mut CurrentRealm<'_>, descriptor: StringOrUnsignedLong, ) -> Rc<D::Promise>

Source

fn GetDescriptors( &self, realm: &mut CurrentRealm<'_>, descriptor: Option<StringOrUnsignedLong>, ) -> Rc<D::Promise>

Source

fn ReadValue(&self, realm: &mut CurrentRealm<'_>) -> Rc<D::Promise>

Source

fn WriteValue( &self, realm: &mut CurrentRealm<'_>, value: ArrayBufferViewOrArrayBuffer, ) -> Rc<D::Promise>

Source

fn StartNotifications(&self, realm: &mut CurrentRealm<'_>) -> Rc<D::Promise>

Source

fn StopNotifications(&self, realm: &mut CurrentRealm<'_>) -> Rc<D::Promise>

Source

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

Source

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

Implementors§