pub enum PublishResult {
Acknowledged(u16),
Completed(u16),
Sent(u16),
TimedOut,
SerializationError(String),
Error(String),
}Expand description
Result of a publish operation indicating when the message lifecycle completed.
Variants:
Acknowledged(pkid)- QoS 1: broker acknowledged the publish (PUBACK)Completed(pkid)- QoS 2: publish flow completed (PUBCOMP)Sent(pkid)- QoS 0: message was sent but no broker ack expectedTimedOut- waiting for the send packet id timed outError(..)- internal or channel errors
Variants§
Acknowledged(u16)
Message was acknowledged by broker (QoS 1 PUBACK)
Completed(u16)
Message transmission to broker was completed (QoS 2 PUBCOMP)
Sent(u16)
No acknowledgment expected (QoS 0)
TimedOut
Timed Out
SerializationError(String)
Error(String)
Internal Error
Trait Implementations§
Source§impl Debug for PublishResult
impl Debug for PublishResult
Auto Trait Implementations§
impl Freeze for PublishResult
impl RefUnwindSafe for PublishResult
impl Send for PublishResult
impl Sync for PublishResult
impl Unpin for PublishResult
impl UnwindSafe for PublishResult
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