#[repr(u8)]pub enum PubrecReasonCode {
Success = 0,
NoMatchingSubscribers = 16,
UnspecifiedError = 128,
ImplementationSpecificError = 131,
NotAuthorized = 135,
TopicNameInvalid = 144,
PacketIdentifierInUse = 145,
QuotaExceeded = 151,
PayloadFormatInvalid = 153,
}
Expand description
Reason code for PUBREC packet.
Dec | Hex | Reason Code name | Description |
---|---|---|---|
0 | 0x00 | Success | The message is accepted. Publication of the QoS 2 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 PubrecReasonCode
impl Clone for PubrecReasonCode
Source§fn clone(&self) -> PubrecReasonCode
fn clone(&self) -> PubrecReasonCode
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 PubrecReasonCode
impl Debug for PubrecReasonCode
Source§impl Hash for PubrecReasonCode
impl Hash for PubrecReasonCode
Source§impl PartialEq for PubrecReasonCode
impl PartialEq for PubrecReasonCode
impl Copy for PubrecReasonCode
impl Eq for PubrecReasonCode
impl StructuralPartialEq for PubrecReasonCode
Auto Trait Implementations§
impl Freeze for PubrecReasonCode
impl RefUnwindSafe for PubrecReasonCode
impl Send for PubrecReasonCode
impl Sync for PubrecReasonCode
impl Unpin for PubrecReasonCode
impl UnwindSafe for PubrecReasonCode
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