Struct riot_wrappers::nimble::uuid::Uuid32
source · #[repr(C)]pub struct Uuid32 { /* private fields */ }
Available on
riot_module_nimble_host
only.Expand description
A wrapper around ble_uuid{16,32,128}_t.
The bit length is stored in this type (as opposed to only being known through the type), as that allows getting a full ble_uuid_any_t as a pointer out of a reference to a UuidX. The stored bit length is an invariant (as it’s needed for the …_any_t to be usable).
(Internally, this is emulated and a ble_uuid128_t-like structure is used to ease and because the author sees no reason to treat shorter numerics as scalars rather than arrays.)
Implementations§
Trait Implementations§
source§impl FromStr for Uuid32
impl FromStr for Uuid32
§type Err = UuidParseError
type Err = UuidParseError
The associated error which can be returned from parsing.
source§impl<'a> Into<*const ble_uuid_t> for &'a Uuid32
impl<'a> Into<*const ble_uuid_t> for &'a Uuid32
Useful for building values for things like ble_gatt_svc_def
that take a pointer to a
ble_uuid_t rather than to a ble_uuid_any_t, probably to simplify casting in C.
source§fn into(self) -> *const ble_uuid_t
fn into(self) -> *const ble_uuid_t
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl RefUnwindSafe for Uuid32
impl Send for Uuid32
impl Sync for Uuid32
impl Unpin for Uuid32
impl UnwindSafe for Uuid32
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