[][src]Trait bluez_async::BleUuid

pub trait BleUuid {
    pub fn to_ble_u32(&self) -> Option<u32>;
pub fn to_ble_u16(&self) -> Option<u16>;
pub fn succinctly(&self) -> String; }

An extension trait for Uuid which provides BLE-specific methods.

Required methods

pub fn to_ble_u32(&self) -> Option<u32>[src]

If the UUID is a valid BLE short UUID then return its short form, otherwise return None.

pub fn to_ble_u16(&self) -> Option<u16>[src]

If the UUID is a valid 16-bit BLE short UUID then return its short form, otherwise return None.

pub fn succinctly(&self) -> String[src]

Convert the UUID to a string, using short format if applicable.

Loading content...

Implementations on Foreign Types

impl BleUuid for Uuid[src]

Loading content...

Implementors

Loading content...