Struct ockam_transport_ble::driver::BleClient
source · pub struct BleClient<A> { /* private fields */ }
Expand description
A BLE client that initiates GATT commands and requests, and accepts responses from a BLE server.
Implementations§
source§impl<A> BleClient<A>
impl<A> BleClient<A>
pub fn with_adapter(inner: A) -> Self
Trait Implementations§
source§impl<A> BleClientDriver for BleClient<A>
impl<A> BleClientDriver for BleClient<A>
fn scan<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ble_addr: &'life1 BleAddr
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn connect<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
source§impl<A> BleStreamDriver for BleClient<A>
impl<A> BleStreamDriver for BleClient<A>
fn poll<'b, 'life0, 'async_trait>(
&'life0 mut self,
buffer: &'b mut [u8]
) -> Pin<Box<dyn Future<Output = Result<BleEvent<'b>>> + Send + 'async_trait>>where
Self: 'async_trait,
'b: 'async_trait,
'life0: 'async_trait,
fn write<'life0, 'life1, 'async_trait>(
&'life0 mut self,
buffer: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl<A> RefUnwindSafe for BleClient<A>where
A: RefUnwindSafe,
impl<A> Send for BleClient<A>where
A: Send,
impl<A> Sync for BleClient<A>where
A: Sync,
impl<A> Unpin for BleClient<A>where
A: Unpin,
impl<A> UnwindSafe for BleClient<A>where
A: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more