Enum esp32_nimble::utilities::BleUuid
source · pub enum BleUuid {
Uuid16(u16),
Uuid32(u32),
Uuid128([u8; 16]),
}
Expand description
A Bluetooth UUID.
Variants§
Implementations§
source§impl BleUuid
impl BleUuid
sourcepub const fn from_uuid16(uuid: u16) -> Self
pub const fn from_uuid16(uuid: u16) -> Self
Creates a new BleUuid
from a 16-bit integer.
sourcepub const fn from_uuid32(uuid: u32) -> Self
pub const fn from_uuid32(uuid: u32) -> Self
Creates a new BleUuid
from a 32-bit integer.
sourcepub const fn from_uuid128(uuid: [u8; 16]) -> Self
pub const fn from_uuid128(uuid: [u8; 16]) -> Self
Creates a new BleUuid
from a 16 byte array.
sourcepub const fn from_uuid128_string(uuid: &str) -> Result<Self, Error>
pub const fn from_uuid128_string(uuid: &str) -> Result<Self, Error>
Trait Implementations§
source§impl From<BleUuid> for ble_uuid_any_t
impl From<BleUuid> for ble_uuid_any_t
source§impl From<ble_uuid_any_t> for BleUuid
impl From<ble_uuid_any_t> for BleUuid
source§fn from(uuid: ble_uuid_any_t) -> Self
fn from(uuid: ble_uuid_any_t) -> Self
Converts to this type from the input type.
impl Copy for BleUuid
Auto Trait Implementations§
impl Freeze for BleUuid
impl RefUnwindSafe for BleUuid
impl Send for BleUuid
impl Sync for BleUuid
impl Unpin for BleUuid
impl UnwindSafe for BleUuid
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)