#[repr(u8)]pub enum ReasonCode {
Show 43 variants
Success = 0,
GrantedQoS1 = 1,
GrantedQoS2 = 2,
DisconnectWithWillMessage = 4,
NoMatchingSubscribers = 16,
NoSubscriptionExisted = 17,
ContinueAuthentication = 24,
Reauthenticate = 25,
UnspecifiedError = 128,
MalformedPacket = 129,
ProtocolError = 130,
ImplementationSpecificError = 131,
UnsupportedProtocolVersion = 132,
ClientIdentifierNotValid = 133,
BadUserNameOrPassword = 134,
NotAuthorized = 135,
ServerUnavailable = 136,
ServerBusy = 137,
Banned = 138,
ServerShuttingDown = 139,
BadAuthenticationMethod = 140,
KeepAliveTimeout = 141,
SessionTakenOver = 142,
TopicFilterInvalid = 143,
TopicNameInvalid = 144,
PacketIdentifierInUse = 145,
PacketIdentifierNotFound = 146,
ReceiveMaximumExceeded = 147,
TopicAliasInvalid = 148,
PacketTooLarge = 149,
MessageRateTooHigh = 150,
QuotaExceeded = 151,
AdministrativeAction = 152,
PayloadFormatInvalid = 153,
RetainNotSupported = 154,
QoSNotSupported = 155,
UseAnotherServer = 156,
ServerMoved = 157,
SharedSubscriptionsNotSupported = 158,
ConnectionRateExceeded = 159,
MaximumConnectTime = 160,
SubscriptionIdentifiersNotSupported = 161,
WildcardSubscriptionsNotSupported = 162,
}Expand description
MQTT-5.0 Reason Code.
Variants§
Success = 0
0 Success / Normal Disconnection / Granted QoS 0.
GrantedQoS1 = 1
1 Granted QoS 1.
GrantedQoS2 = 2
2 Granted QoS 2.
DisconnectWithWillMessage = 4
4 Disconnect with Will Message.
NoMatchingSubscribers = 16
16 No Matching Subscribers.
NoSubscriptionExisted = 17
17 No Subscription Existed.
ContinueAuthentication = 24
24 Continue Authentication.
Reauthenticate = 25
25 Re-authenticate.
UnspecifiedError = 128
128 Unspecified Error.
MalformedPacket = 129
129 Malformed Packet.
ProtocolError = 130
130 Protocol Error.
ImplementationSpecificError = 131
131 Implementation specific Error.
UnsupportedProtocolVersion = 132
132 Unsupported Protocol Version.
ClientIdentifierNotValid = 133
133 Client Identifier not valid.
BadUserNameOrPassword = 134
134 Bad User Name or Password.
NotAuthorized = 135
135 Not authorized.
136 Server unavailable.
ServerBusy = 137
137 Server busy.
Banned = 138
138 Banned.
ServerShuttingDown = 139
139 Server shutting down.
BadAuthenticationMethod = 140
140 Bad authentication method.
KeepAliveTimeout = 141
141 Keep Alive timeout.
SessionTakenOver = 142
142 Session taken over.
TopicFilterInvalid = 143
143 Topic Filter invalid.
TopicNameInvalid = 144
144 Topic Name invalid.
PacketIdentifierInUse = 145
145 Packet Identifier in use.
PacketIdentifierNotFound = 146
146 Packet Identifier not found.
ReceiveMaximumExceeded = 147
147 Receive Maximum exceeded.
TopicAliasInvalid = 148
148 Topic Alias invalid.
PacketTooLarge = 149
149 Packet too large.
MessageRateTooHigh = 150
150 Message rate too high.
QuotaExceeded = 151
151 Quota exceeded.
AdministrativeAction = 152
152 Administrative action.
PayloadFormatInvalid = 153
153 Payload format invalid.
RetainNotSupported = 154
154 Retain not supported.
QoSNotSupported = 155
155 QoS not supported.
UseAnotherServer = 156
156 Use another server.
ServerMoved = 157
157 Server moved.
158 Shared Subscriptions not supported.
ConnectionRateExceeded = 159
159 Connection rate exceeded.
MaximumConnectTime = 160
160 Maximum connect time.
SubscriptionIdentifiersNotSupported = 161
161 Subscription Identifiers not supported.
WildcardSubscriptionsNotSupported = 162
162 Wildcard Subscriptions not supported.
Implementations§
Trait Implementations§
Source§impl Clone for ReasonCode
impl Clone for ReasonCode
Source§fn clone(&self) -> ReasonCode
fn clone(&self) -> ReasonCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReasonCode
impl Debug for ReasonCode
Source§impl Display for ReasonCode
impl Display for ReasonCode
Source§impl PartialEq for ReasonCode
impl PartialEq for ReasonCode
Source§fn eq(&self, other: &ReasonCode) -> bool
fn eq(&self, other: &ReasonCode) -> bool
self and other values to be equal, and is used by ==.