[][src]Trait rumq_core::mqtt4::AsyncMqttRead

pub trait AsyncMqttRead: AsyncReadExt + Unpin {
#[must_use]    fn async_mqtt_read<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<Packet, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... }
#[must_use] fn async_deserialize<'life0, 'async_trait>(
        &'life0 mut self,
        byte1: u8,
        remaining_len: usize
    ) -> Pin<Box<dyn Future<Output = Result<Packet, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... }
#[must_use] fn read_connect<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<Connect, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... }
#[must_use] fn read_connack<'life0, 'async_trait>(
        &'life0 mut self,
        remaining_len: usize
    ) -> Pin<Box<dyn Future<Output = Result<Connack, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... }
#[must_use] fn read_publish<'life0, 'async_trait>(
        &'life0 mut self,
        byte1: u8,
        remaining_len: usize
    ) -> Pin<Box<dyn Future<Output = Result<Publish, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... }
#[must_use] fn read_subscribe<'life0, 'async_trait>(
        &'life0 mut self,
        remaining_len: usize
    ) -> Pin<Box<dyn Future<Output = Result<Subscribe, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... }
#[must_use] fn read_suback<'life0, 'async_trait>(
        &'life0 mut self,
        remaining_len: usize
    ) -> Pin<Box<dyn Future<Output = Result<Suback, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... }
#[must_use] fn read_unsubscribe<'life0, 'async_trait>(
        &'life0 mut self,
        remaining_len: usize
    ) -> Pin<Box<dyn Future<Output = Result<Unsubscribe, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... }
#[must_use] fn read_mqtt_string<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... }
#[must_use] fn read_remaining_length<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... } }

Mqtt awareness on top of tokio's AsyncRead

Provided methods

#[must_use]fn async_mqtt_read<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Packet, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: Send + 'async_trait, 

#[must_use]fn async_deserialize<'life0, 'async_trait>(
    &'life0 mut self,
    byte1: u8,
    remaining_len: usize
) -> Pin<Box<dyn Future<Output = Result<Packet, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: Send + 'async_trait, 

#[must_use]fn read_connect<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Connect, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: Send + 'async_trait, 

#[must_use]fn read_connack<'life0, 'async_trait>(
    &'life0 mut self,
    remaining_len: usize
) -> Pin<Box<dyn Future<Output = Result<Connack, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: Send + 'async_trait, 

#[must_use]fn read_publish<'life0, 'async_trait>(
    &'life0 mut self,
    byte1: u8,
    remaining_len: usize
) -> Pin<Box<dyn Future<Output = Result<Publish, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: Send + 'async_trait, 

#[must_use]fn read_subscribe<'life0, 'async_trait>(
    &'life0 mut self,
    remaining_len: usize
) -> Pin<Box<dyn Future<Output = Result<Subscribe, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: Send + 'async_trait, 

#[must_use]fn read_suback<'life0, 'async_trait>(
    &'life0 mut self,
    remaining_len: usize
) -> Pin<Box<dyn Future<Output = Result<Suback, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: Send + 'async_trait, 

#[must_use]fn read_unsubscribe<'life0, 'async_trait>(
    &'life0 mut self,
    remaining_len: usize
) -> Pin<Box<dyn Future<Output = Result<Unsubscribe, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: Send + 'async_trait, 

#[must_use]fn read_mqtt_string<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: Send + 'async_trait, 

#[must_use]fn read_remaining_length<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: Send + 'async_trait, 

Loading content...

Implementors

impl<R: AsyncReadExt + ?Sized + Unpin> AsyncMqttRead for R[src]

Implement MattRead for every AsyncReadExt type (and hence AsyncRead type)

Loading content...