mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Implementation of the getPrimaryService(s), the getCharacteristic(s) and the getDescriptor(s) functions.
This commit is contained in:
parent
9825ea41b4
commit
b01c52c18f
9 changed files with 411 additions and 59 deletions
|
@ -333,3 +333,12 @@ impl BluetoothUUID {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Clone for StringOrUnsignedLong {
|
||||
fn clone(&self) -> StringOrUnsignedLong {
|
||||
match self {
|
||||
&StringOrUnsignedLong::String(ref s) => StringOrUnsignedLong::String(s.clone()),
|
||||
&StringOrUnsignedLong::UnsignedLong(ul) => StringOrUnsignedLong::UnsignedLong(ul),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue