[−][src]Trait toio::ble::PeripheralOpsExt
The interface to help reading/writing protocol messages.
Provided methods
#[must_use]fn write_msg<'life0, 'async_trait, T>(
&'life0 mut self,
value: T,
with_resp: bool
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
T: TryInto<(Uuid, Vec<u8>), Error = Error> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: Send + 'async_trait,
&'life0 mut self,
value: T,
with_resp: bool
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
T: TryInto<(Uuid, Vec<u8>), Error = Error> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: Send + 'async_trait,
Write protocol message.
fn subscribe_msg<T>(&mut self) -> Result<MessageStream<T>> where
T: TryFrom<(Uuid, Vec<u8>), Error = Error> + Send,
T: TryFrom<(Uuid, Vec<u8>), Error = Error> + Send,
Subscribe to the peripheral parsing bytes to protocol messge.
Implementors
impl<T> PeripheralOpsExt for T where
T: PeripheralOps,
[src]
T: PeripheralOps,