Skip to main content

Gatt

Trait Gatt 

Source
pub trait Gatt {
    // Required method
    async fn run<T>(&mut self, task: T) -> Result<(), Error>
       where T: GattTask;
}
Expand description

A trait for running a task within a context where the BLE peripheral is initialized and operable (e.g. the first part of a non-concurrent commissioning workflow)

Required Methods§

Source

async fn run<T>(&mut self, task: T) -> Result<(), Error>
where T: GattTask,

Setup the radio to operate in BLE mode and run the given task.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> Gatt for &mut T
where T: Gatt,

Source§

fn run<A>(&mut self, task: A) -> impl Future<Output = Result<(), Error>>
where A: GattTask,

Implementors§

Source§

impl<U, N, C, M, P> Gatt for PreexistingWireless<U, N, C, M, P>
where P: GattPeripheral,