pub struct BleGattServices { /* private fields */ }Expand description
A GATT service table built at runtime (heap-allocated), as the raw NimBLE
ble_gatt_svc_def tree, ready to hand to
BleDriver::new_with_services. Implements
AsRef<[ble_gatt_svc_def]>, so it is one valid S; a &'static table or a
Box<[ble_gatt_svc_def]> are others. For a compile-time table (no heap), see the
gatt_services! macro.
Implementations§
Source§impl BleGattServices
impl BleGattServices
pub fn new(services: Vec<BleGattService>) -> Self
Trait Implementations§
Source§impl AsRef<[ble_gatt_svc_def]> for BleGattServices
impl AsRef<[ble_gatt_svc_def]> for BleGattServices
Source§fn as_ref(&self) -> &[ble_gatt_svc_def]
fn as_ref(&self) -> &[ble_gatt_svc_def]
Converts this type into a shared reference of the (usually inferred) input type.