We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc7593a commit b7ae46bCopy full SHA for b7ae46b
host/src/types/uuid.rs
@@ -1,6 +1,6 @@
1
//! UUID types.
2
3
-use bt_hci::uuid::BluetoothUuid16;
+use bt_hci::uuid::{BluetoothUuid128, BluetoothUuid16};
4
5
use crate::codec::{Decode, Encode, Error, Type};
6
@@ -20,6 +20,12 @@ impl From<BluetoothUuid16> for Uuid {
20
}
21
22
23
+impl From<BluetoothUuid128> for Uuid {
24
+ fn from(data: bt_hci::uuid::BluetoothUuid128) -> Self {
25
+ Uuid::Uuid128(data.into())
26
+ }
27
+}
28
+
29
impl From<u128> for Uuid {
30
fn from(data: u128) -> Self {
31
Uuid::Uuid128(data.to_le_bytes())
0 commit comments