bluest 0.6.9

A cross-platform Bluetooth Low Energy (BLE) library
Documentation
#![allow(unexpected_cfgs)]

use crate::Uuid;

pub mod adapter;
pub mod characteristic;
pub mod descriptor;
pub mod device;
pub mod error;
#[cfg(feature = "l2cap")]
pub mod l2cap_channel;
pub mod service;

mod ad;
pub(crate) mod delegates;
pub(crate) mod dispatch;

/// A platform-specific device identifier.
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct DeviceId(Uuid);

impl std::fmt::Display for DeviceId {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        std::fmt::Display::fmt(&self.0, f)
    }
}