pub struct BluetoothUuid16(/* private fields */);
Expand description
Bluetooth UUID.
Implementations§
Source§impl BluetoothUuid16
impl BluetoothUuid16
Sourcepub const fn new(uuid: u16) -> BluetoothUuid16
pub const fn new(uuid: u16) -> BluetoothUuid16
Create a new BluetoothUuid16
.
Sourcepub const fn to_le_bytes(self) -> [u8; 2]
pub const fn to_le_bytes(self) -> [u8; 2]
Convert the BluetoothUuid16
to a byte array as a const function.
Sourcepub const fn from_le_bytes(bytes: [u8; 2]) -> BluetoothUuid16
pub const fn from_le_bytes(bytes: [u8; 2]) -> BluetoothUuid16
Convert from a byte array to a BluetoothUuid16
.
Trait Implementations§
Source§impl Clone for BluetoothUuid16
impl Clone for BluetoothUuid16
Source§fn clone(&self) -> BluetoothUuid16
fn clone(&self) -> BluetoothUuid16
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BluetoothUuid16
impl Debug for BluetoothUuid16
Source§impl Display for BluetoothUuid16
impl Display for BluetoothUuid16
Source§impl Format for BluetoothUuid16
impl Format for BluetoothUuid16
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 PartialEq for BluetoothUuid16
impl PartialEq for BluetoothUuid16
impl Copy for BluetoothUuid16
impl Eq for BluetoothUuid16
impl StructuralPartialEq for BluetoothUuid16
Auto Trait Implementations§
impl Freeze for BluetoothUuid16
impl RefUnwindSafe for BluetoothUuid16
impl Send for BluetoothUuid16
impl Sync for BluetoothUuid16
impl Unpin for BluetoothUuid16
impl UnwindSafe for BluetoothUuid16
Blanket Implementations§
Source§impl<T> AsGatt for Twhere
T: FixedGattValue,
impl<T> AsGatt for Twhere
T: FixedGattValue,
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