Struct burble_const::Uuid
source · #[repr(transparent)]pub struct Uuid(_);Expand description
16-, 32-, or 128-bit UUID ([Vol 3] Part B, Section 2.5.1).
Implementations§
source§impl Uuid
impl Uuid
sourcepub const unsafe fn new_unchecked(v: u128) -> Self
pub const unsafe fn new_unchecked(v: u128) -> Self
Creates a UUID from a u128 without checking whether the value is
non-zero.
Safety
The value must not be zero.
sourcepub fn typ(self) -> UuidType
pub fn typ(self) -> UuidType
Returns the UUID type. Returns UuidType::NonSig for non-SIG UUID.
sourcepub fn as_u16(self) -> Option<u16>
pub fn as_u16(self) -> Option<u16>
Converts an assigned 16-bit Bluetooth SIG UUID to u16. This is
mutually exclusive with as_u32 and as_u128.
sourcepub fn as_u32(self) -> Option<u32>
pub fn as_u32(self) -> Option<u32>
Converts an assigned 32-bit Bluetooth SIG UUID to u32. This is
mutually exclusive with as_u16 and as_u128.
Trait Implementations§
source§impl From<Characteristic> for Uuid
impl From<Characteristic> for Uuid
source§fn from(v: Characteristic) -> Self
fn from(v: Characteristic) -> Self
Converts to this type from the input type.
source§impl From<Declaration> for Uuid
impl From<Declaration> for Uuid
source§fn from(v: Declaration) -> Self
fn from(v: Declaration) -> Self
Converts to this type from the input type.
source§impl From<Descriptor> for Uuid
impl From<Descriptor> for Uuid
source§fn from(v: Descriptor) -> Self
fn from(v: Descriptor) -> Self
Converts to this type from the input type.
source§impl From<ServiceClass> for Uuid
impl From<ServiceClass> for Uuid
source§fn from(v: ServiceClass) -> Self
fn from(v: ServiceClass) -> Self
Converts to this type from the input type.
source§impl Ord for Uuid
impl Ord for Uuid
source§impl PartialEq<Characteristic> for Uuid
impl PartialEq<Characteristic> for Uuid
source§fn eq(&self, rhs: &Characteristic) -> bool
fn eq(&self, rhs: &Characteristic) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<Declaration> for Uuid
impl PartialEq<Declaration> for Uuid
source§fn eq(&self, rhs: &Declaration) -> bool
fn eq(&self, rhs: &Declaration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<Descriptor> for Uuid
impl PartialEq<Descriptor> for Uuid
source§fn eq(&self, rhs: &Descriptor) -> bool
fn eq(&self, rhs: &Descriptor) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<Service> for Uuid
impl PartialEq<Service> for Uuid
source§impl PartialEq<ServiceClass> for Uuid
impl PartialEq<ServiceClass> for Uuid
source§fn eq(&self, rhs: &ServiceClass) -> bool
fn eq(&self, rhs: &ServiceClass) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<Uuid> for Characteristic
impl PartialEq<Uuid> for Characteristic
source§impl PartialEq<Uuid> for Declaration
impl PartialEq<Uuid> for Declaration
source§impl PartialEq<Uuid> for Descriptor
impl PartialEq<Uuid> for Descriptor
source§impl PartialEq<Uuid> for ServiceClass
impl PartialEq<Uuid> for ServiceClass
source§impl PartialEq<Uuid> for Uuid
impl PartialEq<Uuid> for Uuid
source§impl PartialOrd<Uuid> for Uuid
impl PartialOrd<Uuid> for Uuid
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more