#[repr(u8)]pub enum SubscribeReasonCode {
GrantedQoS0 = 0,
GrantedQoS1 = 1,
GrantedQoS2 = 2,
UnspecifiedError = 128,
ImplementationSpecificError = 131,
NotAuthorized = 135,
TopicFilterInvalid = 143,
PacketIdentifierInUse = 145,
QuotaExceeded = 151,
SharedSubscriptionNotSupported = 158,
SubscriptionIdentifiersNotSupported = 161,
WildcardSubscriptionsNotSupported = 162,
}
Expand description
Reason code for SUBACK packet.
Dec | Hex | Reason Code name | Description |
---|---|---|---|
0 | 0x00 | Granted QoS 0 | The subscription is accepted and the maximum QoS sent will be QoS 0. This might be a lower QoS than was requested. |
1 | 0x01 | Granted QoS 1 | The subscription is accepted and the maximum QoS sent will be QoS 1. This might be a lower QoS than was requested. |
2 | 0x02 | Granted QoS 2 | The subscription is accepted and any received QoS will be sent to this subscription. |
128 | 0x80 | Unspecified error | The subscription is not accepted and the Server either does not wish to reveal the reason |
or none of the other Reason Codes apply. | |||
131 | 0x83 | Implementation specific error | The SUBSCRIBE is valid but the Server does not accept it. |
135 | 0x87 | Not authorized | The Client is not authorized to make this subscription. |
143 | 0x8F | Topic Filter invalid | The Topic Filter is correctly formed but is not allowed for this Client. |
145 | 0x91 | Packet Identifier in use | The specified Packet Identifier is already in use. |
151 | 0x97 | Quota exceeded | An implementation or administrative imposed limit has been exceeded. |
158 | 0x9E | Shared Subscriptions not supported | The Server does not support Shared Subscriptions for this Client. |
161 | 0xA1 | Subscription Identifiers not supported | The Server does not support Subscription Identifiers; the subscription is not accepted. |
162 | 0xA2 | Wildcard Subscriptions not supported | The Server does not support Wildcard Subscriptions; the subscription is not accepted. |
Variants§
GrantedQoS0 = 0
GrantedQoS1 = 1
GrantedQoS2 = 2
UnspecifiedError = 128
ImplementationSpecificError = 131
NotAuthorized = 135
TopicFilterInvalid = 143
PacketIdentifierInUse = 145
QuotaExceeded = 151
SubscriptionIdentifiersNotSupported = 161
WildcardSubscriptionsNotSupported = 162
Implementations§
Trait Implementations§
Source§impl Clone for SubscribeReasonCode
impl Clone for SubscribeReasonCode
Source§fn clone(&self) -> SubscribeReasonCode
fn clone(&self) -> SubscribeReasonCode
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 SubscribeReasonCode
impl Debug for SubscribeReasonCode
Source§impl Hash for SubscribeReasonCode
impl Hash for SubscribeReasonCode
Source§impl PartialEq for SubscribeReasonCode
impl PartialEq for SubscribeReasonCode
impl Copy for SubscribeReasonCode
impl Eq for SubscribeReasonCode
impl StructuralPartialEq for SubscribeReasonCode
Auto Trait Implementations§
impl Freeze for SubscribeReasonCode
impl RefUnwindSafe for SubscribeReasonCode
impl Send for SubscribeReasonCode
impl Sync for SubscribeReasonCode
impl Unpin for SubscribeReasonCode
impl UnwindSafe for SubscribeReasonCode
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