[][src]Trait rumq_core::MqttWrite

pub trait MqttWrite: AsyncWriteBytesExt + Unpin {
    fn mqtt_write<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        packet: &'life1 Packet
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Send + 'async_trait
, { ... }
fn write_mqtt_string<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        string: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Send + 'async_trait
, { ... }
fn write_remaining_length<'life0, 'async_trait>(
        &'life0 mut self,
        len: usize
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... } }

Provided methods

fn mqtt_write<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    packet: &'life1 Packet
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: Send + 'async_trait, 

fn write_mqtt_string<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    string: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: Send + 'async_trait, 

fn write_remaining_length<'life0, 'async_trait>(
    &'life0 mut self,
    len: usize
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: Send + 'async_trait, 

Loading content...

Implementors

impl<W: AsyncWriteBytesExt + ?Sized + Unpin> MqttWrite for W[src]

Implement MqttWrite for every AsyncWriteBytesExt type (and hence AsyncWrite type)

Loading content...