Trait script::dom::bindings::codegen::Bindings::BluetoothRemoteGATTCharacteristicBinding::BluetoothRemoteGATTCharacteristicBinding::BluetoothRemoteGATTCharacteristicMethods
source · pub trait BluetoothRemoteGATTCharacteristicMethods {
fn Service(&self) -> Root<Dom<BluetoothRemoteGATTService>>;
fn Uuid(&self) -> DOMString;
fn Properties(&self) -> Root<Dom<BluetoothCharacteristicProperties>>;
fn GetValue(&self) -> Option<ByteString>;
fn GetDescriptor(&self, descriptor: StringOrUnsignedLong) -> Rc<Promise>;
fn GetDescriptors(
&self,
descriptor: Option<StringOrUnsignedLong>
) -> Rc<Promise>;
fn ReadValue(&self, _comp: InRealm<'_>) -> Rc<Promise>;
fn WriteValue(
&self,
value: ArrayBufferViewOrArrayBuffer,
_comp: InRealm<'_>
) -> Rc<Promise>;
fn StartNotifications(&self, _comp: InRealm<'_>) -> Rc<Promise>;
fn StopNotifications(&self, _comp: InRealm<'_>) -> Rc<Promise>;
fn GetOncharacteristicvaluechanged(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOncharacteristicvaluechanged(
&self,
value: Option<Rc<EventHandlerNonNull>>
);
}