#[repr(u8)]pub enum PubackReasonCode {
Success = 0,
NoMatchingSubscribers = 16,
UnspecifiedError = 128,
ImplementationSpecificError = 131,
NotAuthorized = 135,
TopicNameInvalid = 144,
PacketIdentifierInUse = 145,
QuotaExceeded = 151,
PayloadFormatInvalid = 153,
}
Expand description
Reason code for PUBACK packet.
Dec | Hex | Reason Code name | Description |
---|---|---|---|
0 | 0x00 | Success | The message is accepted. Publication of the QoS 1 message proceeds. |
16 | 0x10 | No matching subscribers | The message is accepted but there are no subscribers. This is sent only by the Server. |
If the Server knows that there are no matching subscribers, it MAY use this Reason Code instead of 0x00 (Success). | |||
128 | 0x80 | Unspecified error | The receiver does not accept the publish but either does not want to reveal the reason, |
or it does not match one of the other values. | |||
131 | 0x83 | Implementation specific error | The PUBLISH is valid but the receiver is not willing to accept it. |
135 | 0x87 | Not authorized | The PUBLISH is not authorized. |
144 | 0x90 | Topic Name invalid | The Topic Name is not malformed, but is not accepted by this Client or Server. |
145 | 0x91 | Packet identifier in use | The Packet Identifier is already in use. |
This might indicate a mismatch in the Session State between the Client and Server. | |||
151 | 0x97 | Quota exceeded | An implementation or administrative imposed limit has been exceeded. |
153 | 0x99 | Payload format invalid | The payload format does not match the specified Payload Format Indicator. |
Variants§
Success = 0
NoMatchingSubscribers = 16
UnspecifiedError = 128
ImplementationSpecificError = 131
NotAuthorized = 135
TopicNameInvalid = 144
PacketIdentifierInUse = 145
QuotaExceeded = 151
PayloadFormatInvalid = 153
Implementations§
Trait Implementations§
Source§impl Clone for PubackReasonCode
impl Clone for PubackReasonCode
Source§fn clone(&self) -> PubackReasonCode
fn clone(&self) -> PubackReasonCode
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 PubackReasonCode
impl Debug for PubackReasonCode
Source§impl Hash for PubackReasonCode
impl Hash for PubackReasonCode
Source§impl PartialEq for PubackReasonCode
impl PartialEq for PubackReasonCode
impl Copy for PubackReasonCode
impl Eq for PubackReasonCode
impl StructuralPartialEq for PubackReasonCode
Auto Trait Implementations§
impl Freeze for PubackReasonCode
impl RefUnwindSafe for PubackReasonCode
impl Send for PubackReasonCode
impl Sync for PubackReasonCode
impl Unpin for PubackReasonCode
impl UnwindSafe for PubackReasonCode
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