[][src]Trait toio::ble::PeripheralOpsExt

pub trait PeripheralOpsExt: PeripheralOps {
#[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
, { ... }
fn subscribe_msg<T>(&mut self) -> Result<MessageStream<T>>
    where
        T: TryFrom<(Uuid, Vec<u8>), Error = Error> + Send
, { ... } }

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, 

Write protocol message.

fn subscribe_msg<T>(&mut self) -> Result<MessageStream<T>> where
    T: TryFrom<(Uuid, Vec<u8>), Error = Error> + Send

Subscribe to the peripheral parsing bytes to protocol messge.

Loading content...

Implementors

impl<T> PeripheralOpsExt for T where
    T: PeripheralOps
[src]

Loading content...