Skip to main content

BleGattServices

Struct BleGattServices 

Source
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

Source

pub fn new(services: Vec<BleGattService>) -> Self

Trait Implementations§

Source§

impl AsRef<[ble_gatt_svc_def]> for BleGattServices

Source§

fn as_ref(&self) -> &[ble_gatt_svc_def]

Converts this type into a shared reference of the (usually inferred) input type.

Auto Trait Implementations§

§

impl !Send for BleGattServices

§

impl !Sync for BleGattServices

§

impl Freeze for BleGattServices

§

impl RefUnwindSafe for BleGattServices

§

impl Unpin for BleGattServices

§

impl UnsafeUnpin for BleGattServices

§

impl UnwindSafe for BleGattServices

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = !

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.