Struct ockam_transport_ble::driver::BleServer
source · pub struct BleServer<A> { /* private fields */ }
Expand description
A BLE server that receives GATT commands and requests, and returns responses to a BLE client.
Implementations§
source§impl<A> BleServer<A>
impl<A> BleServer<A>
pub fn with_adapter(inner: A) -> Self
Trait Implementations§
source§impl<A> BleServerDriver for BleServer<A>
impl<A> BleServerDriver for BleServer<A>
fn bind<'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 start_advertising<'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 BleServer<A>
impl<A> BleStreamDriver for BleServer<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 BleServer<A>where
A: RefUnwindSafe,
impl<A> Send for BleServer<A>where
A: Send,
impl<A> Sync for BleServer<A>where
A: Sync,
impl<A> Unpin for BleServer<A>where
A: Unpin,
impl<A> UnwindSafe for BleServer<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