pub struct GattServices<const N: usize>(/* private fields */);Expand description
A static (compile-time) GATT service table: a null-terminated ble_gatt_svc_def array
wrapped so it can live in a static. Build one with the gatt_services!
macro and pass &MY_SERVICES to new_with_services — it needs
no heap and lands in flash. N (services + terminator) is inferred by the macro; you never write
it.
Trait Implementations§
Source§impl<const N: usize> AsRef<[ble_gatt_svc_def]> for GattServices<N>
impl<const N: usize> AsRef<[ble_gatt_svc_def]> for GattServices<N>
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.