Trait bluez_async::BleUuid

source ·
pub trait BleUuid {
    // Required methods
    fn to_ble_u32(&self) -> Option<u32>;
    fn to_ble_u16(&self) -> Option<u16>;
    fn succinctly(&self) -> String;
}
Expand description

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

Required Methods§

source

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

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

source

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

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

source

fn succinctly(&self) -> String

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

Implementations on Foreign Types§

source§

impl BleUuid for Uuid

Implementors§