pub enum Uuid {
Uuid16([u8; 2]),
Uuid32([u8; 4]),
Uuid128([u8; 16]),
}Expand description
A 16-bit or 128-bit UUID.
Variants§
Implementations§
Source§impl Uuid
impl Uuid
Sourcepub fn get_att_type(&self) -> u8
pub fn get_att_type(&self) -> u8
Get the ATT Find Information Response format code for the UUID.
Core Spec Vol 3 Part F, 3.4.3.2 defines only 0x01 (handle + 16-bit UUID pairs) and 0x02
(handle + 128-bit UUID pairs). A 32-bit UUID has no form of its own, so it reports 0x02 and
is written as its 128-bit equivalent; see Uuid::att_bytes.
Trait Implementations§
impl Copy for Uuid
impl Eq for Uuid
Source§impl From<BluetoothUuid16> for Uuid
impl From<BluetoothUuid16> for Uuid
Source§fn from(data: BluetoothUuid16) -> Self
fn from(data: BluetoothUuid16) -> Self
Converts to this type from the input type.
Source§impl From<BluetoothUuid32> for Uuid
impl From<BluetoothUuid32> for Uuid
Source§fn from(data: BluetoothUuid32) -> Self
fn from(data: BluetoothUuid32) -> Self
Converts to this type from the input type.
Source§impl From<BluetoothUuid128> for Uuid
impl From<BluetoothUuid128> for Uuid
Source§fn from(data: BluetoothUuid128) -> Self
fn from(data: BluetoothUuid128) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Uuid
Auto Trait Implementations§
impl Freeze for Uuid
impl RefUnwindSafe for Uuid
impl Send for Uuid
impl Sync for Uuid
impl Unpin for Uuid
impl UnsafeUnpin for Uuid
impl UnwindSafe for Uuid
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more