Trait bluer::UuidExt

source ·
pub trait UuidExt {
    // Required methods
    fn as_u32(&self) -> Option<u32>;
    fn as_u16(&self) -> Option<u16>;
    fn from_u32(v: u32) -> Uuid;
    fn from_u16(v: u16) -> Uuid;
}
Expand description

UUID extension trait to convert to and from Bluetooth short UUIDs.

Required Methods§

source

fn as_u32(&self) -> Option<u32>

32-bit short form of Bluetooth UUID.

source

fn as_u16(&self) -> Option<u16>

16-bit short form of Bluetooth UUID.

source

fn from_u32(v: u32) -> Uuid

Long form of 32-bit short form Bluetooth UUID.

source

fn from_u16(v: u16) -> Uuid

Long form of 16-bit short form Bluetooth UUID.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl UuidExt for Uuid

Implementors§