aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bluetoothcharacteristicproperties.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/bluetoothcharacteristicproperties.rs')
-rw-r--r--components/script/dom/bluetoothcharacteristicproperties.rs32
1 files changed, 16 insertions, 16 deletions
diff --git a/components/script/dom/bluetoothcharacteristicproperties.rs b/components/script/dom/bluetoothcharacteristicproperties.rs
index 9abb5e5cd5b..fd716d72bb5 100644
--- a/components/script/dom/bluetoothcharacteristicproperties.rs
+++ b/components/script/dom/bluetoothcharacteristicproperties.rs
@@ -15,37 +15,37 @@ pub struct BluetoothCharacteristicProperties {
reflector_: Reflector,
broadcast: bool,
read: bool,
- writeWithoutResponse: bool,
+ write_without_response: bool,
write: bool,
notify: bool,
indicate: bool,
- authenticatedSignedWrites: bool,
- reliableWrite: bool,
- writableAuxiliaries: bool,
+ authenticated_signed_writes: bool,
+ reliable_write: bool,
+ writable_auxiliaries: bool,
}
impl BluetoothCharacteristicProperties {
pub fn new_inherited(broadcast: bool,
read: bool,
- writeWithoutResponse: bool,
+ write_without_response: bool,
write: bool,
notify: bool,
indicate: bool,
- authenticatedSignedWrites: bool,
- reliableWrite: bool,
- writableAuxiliaries: bool)
+ authenticated_signed_writes: bool,
+ reliable_write: bool,
+ writable_auxiliaries: bool)
-> BluetoothCharacteristicProperties {
BluetoothCharacteristicProperties {
reflector_: Reflector::new(),
broadcast: broadcast,
read: read,
- writeWithoutResponse: writeWithoutResponse,
+ write_without_response: write_without_response,
write: write,
notify: notify,
indicate: indicate,
- authenticatedSignedWrites: authenticatedSignedWrites,
- reliableWrite: reliableWrite,
- writableAuxiliaries: writableAuxiliaries,
+ authenticated_signed_writes: authenticated_signed_writes,
+ reliable_write: reliable_write,
+ writable_auxiliaries: writable_auxiliaries,
}
}
@@ -87,7 +87,7 @@ impl BluetoothCharacteristicPropertiesMethods for BluetoothCharacteristicPropert
// https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothcharacteristicproperties-writewithoutresponse
fn WriteWithoutResponse(&self) -> bool {
- self.writeWithoutResponse
+ self.write_without_response
}
// https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothcharacteristicproperties-write
@@ -107,16 +107,16 @@ impl BluetoothCharacteristicPropertiesMethods for BluetoothCharacteristicPropert
// https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothcharacteristicproperties-authenticatedsignedwrites
fn AuthenticatedSignedWrites(&self) -> bool {
- self.authenticatedSignedWrites
+ self.authenticated_signed_writes
}
// https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothcharacteristicproperties-reliablewrite
fn ReliableWrite(&self) -> bool {
- self.reliableWrite
+ self.reliable_write
}
// https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothcharacteristicproperties-writableauxiliaries
fn WritableAuxiliaries(&self) -> bool {
- self.writableAuxiliaries
+ self.writable_auxiliaries
}
}