[][src]Trait rumq_core::MqttRead

pub trait MqttRead: AsyncReadBytesExt + Unpin {
    fn 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
, { ... }
fn 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
, { ... }
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
, { ... }
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
, { ... }
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
, { ... }
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
, { ... }
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
, { ... }
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
, { ... }
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
, { ... }
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
, { ... } }

Provided methods

fn 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, 

fn 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, 

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, 

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, 

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, 

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, 

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, 

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, 

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, 

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: AsyncReadBytesExt + ?Sized + Unpin> MqttRead for R[src]

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

Loading content...