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
sourceimpl<A> BleClient<A> where
A: BleClientDriver + BleStreamDriver + Send,
impl<A> BleClient<A> where
A: BleClientDriver + BleStreamDriver + Send,
pub fn with_adapter(inner: A) -> Self
Trait Implementations
sourceimpl<A> BleClientDriver for BleClient<A> where
A: BleClientDriver + BleStreamDriver + Send,
impl<A> BleClientDriver for BleClient<A> where
A: BleClientDriver + BleStreamDriver + Send,
fn scan<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ble_addr: &'life1 BleAddr
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn connect<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
sourceimpl<A> BleStreamDriver for BleClient<A> where
A: BleClientDriver + BleStreamDriver + Send,
impl<A> BleStreamDriver for BleClient<A> where
A: BleClientDriver + BleStreamDriver + Send,
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
'b: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn write<'life0, 'life1, 'async_trait>(
&'life0 mut self,
buffer: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: '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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more