pub struct SessionPubReceiver(/* private fields */);
Expand description
Receive and acknowledge incoming MQTT messages.
Trait Implementations§
Source§impl PubReceiver for SessionPubReceiver
impl PubReceiver for SessionPubReceiver
Source§fn recv<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Option<Publish>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn recv<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Option<Publish>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Receives the next incoming publish. Read more
Source§fn recv_manual_ack<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Option<(Publish, Option<AckToken>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn recv_manual_ack<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Option<(Publish, Option<AckToken>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Receives the next incoming publish, and a token that can be used to manually acknowledge
the publish (Quality of Service 1 or 2), or
None
(Quality of Service 0). Read moreAuto Trait Implementations§
impl Freeze for SessionPubReceiver
impl RefUnwindSafe for SessionPubReceiver
impl Send for SessionPubReceiver
impl Sync for SessionPubReceiver
impl Unpin for SessionPubReceiver
impl UnwindSafe for SessionPubReceiver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more