pub enum PublishEvent {
None,
Received,
Complete,
}Expand description
Enumerates the different stages of publishing a message with QoS::ExactlyOnce
that can be awaited on.
Variants§
None
Submit the publish packet to the transceiver task and return, do not wait for completion. Shutting down the transceiver task after this may result in the message not being transmitted at all.
Received
Submit the publish packet to the transceiver task and await its corresponding
PUBREC packet, indicated that the server has received the message.
Shutting down the transceiver task at this point may be safe.
Complete
Submit the publish packet to the transceiver task and await its corresponding
PUBCOMP packet, marking the end the transmission of the message.
Shutting down the transceiver task after this is safe.
Trait Implementations§
Source§impl Clone for PublishEvent
impl Clone for PublishEvent
Source§fn clone(&self) -> PublishEvent
fn clone(&self) -> PublishEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PublishEvent
impl Debug for PublishEvent
impl Copy for PublishEvent
Auto Trait Implementations§
impl Freeze for PublishEvent
impl RefUnwindSafe for PublishEvent
impl Send for PublishEvent
impl Sync for PublishEvent
impl Unpin for PublishEvent
impl UnwindSafe for PublishEvent
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