pub struct Uuid(/* private fields */);
Implementations§
Source§impl Uuid
impl Uuid
Sourcepub const BLUETOOTH_UUID_LENGTH_BYTES: usize = 16usize
pub const BLUETOOTH_UUID_LENGTH_BYTES: usize = 16usize
The standard Bluetooth UUID is 16 bytes.
Sourcepub const fn from_bytes(bytes_little_endian: Bytes) -> Uuid
pub const fn from_bytes(bytes_little_endian: Bytes) -> Uuid
Create a new Uuid from a little-endian array of 16 bytes.
Sourcepub const fn from_be_bytes(bytes_big_endian: Bytes) -> Uuid
pub const fn from_be_bytes(bytes_big_endian: Bytes) -> Uuid
Create a new Uuid from a big-endian array of 16 bytes.
pub fn as_be_bytes(&self) -> &[u8; 16]
pub fn to_u64_pair(&self) -> U64Pair
pub fn from_u64_pair(u64_pair: U64Pair) -> Self
pub const fn new16(value: u16) -> Uuid
pub const fn new32(value: u32) -> Uuid
pub fn to_string(&self) -> String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Uuid
impl<'de> Deserialize<'de> for Uuid
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ServiceClassProfileIdentifier> for Uuid
impl From<ServiceClassProfileIdentifier> for Uuid
Source§fn from(src: ServiceClassProfileIdentifier) -> Self
fn from(src: ServiceClassProfileIdentifier) -> Self
Converts to this type from the input type.
Source§impl From<Uuid> for DataElement
impl From<Uuid> for DataElement
Source§impl ToProperty for Uuid
impl ToProperty for Uuid
type PropertyType = String
fn to_property(&self) -> Self::PropertyType
Source§impl TryFrom<Uuid> for ServiceClassProfileIdentifier
impl TryFrom<Uuid> for ServiceClassProfileIdentifier
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§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
)