[−][src]Trait rumq_client::AsyncMqttRead
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>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Packet, Error>> + 'async_trait + Send>> 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>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
&'life0 mut self,
byte1: u8,
remaining_len: usize
) -> Pin<Box<dyn Future<Output = Result<Packet, Error>> + 'async_trait + Send>> 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>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Connect, Error>> + 'async_trait + Send>> 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>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
&'life0 mut self,
remaining_len: usize
) -> Pin<Box<dyn Future<Output = Result<Connack, Error>> + 'async_trait + Send>> 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>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
&'life0 mut self,
byte1: u8,
remaining_len: usize
) -> Pin<Box<dyn Future<Output = Result<Publish, Error>> + 'async_trait + Send>> 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>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
&'life0 mut self,
remaining_len: usize
) -> Pin<Box<dyn Future<Output = Result<Subscribe, Error>> + 'async_trait + Send>> 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>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
&'life0 mut self,
remaining_len: usize
) -> Pin<Box<dyn Future<Output = Result<Suback, Error>> + 'async_trait + Send>> 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>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
&'life0 mut self,
remaining_len: usize
) -> Pin<Box<dyn Future<Output = Result<Unsubscribe, Error>> + 'async_trait + Send>> 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>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + 'async_trait + Send>> 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>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
Implementors
impl<R> AsyncMqttRead for R where
R: Unpin + AsyncReadExt + ?Sized,
[src]
R: Unpin + AsyncReadExt + ?Sized,
Implement MattRead for every AsyncReadExt type (and hence AsyncRead type)