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
A ReasonCode
is an identifier describing a response in any ackowledgement
packet (such as Connack
or SubAck
)
Variants§
Success = 0
Generic success reason code indicating an operation performed well. According to the emmiting packet, the following meanings are applied:
Disconnect
: Normal DisconnectionSubAck
: Granted QoS 0
GrantedQoS1 = 1
The subscription is accepted and the maximum QoS sent will be QoS 1.
GrantedQoS2 = 2
The subscription is accepted and any received QoS will be sent..
DisconnectWithWillMessage = 4
The client disconnects but want the last will to be sent anyways.
NoMatchingSubscribers = 16
The message is accepted but there are no subscribers.
NoSubscriptionExisted = 17
No matching topic filter is being used by the client
ContinueAuthentication = 24
Continue de authentication with another step
ReAuthenticate = 25
Initiate re-Authentication
UnspecifiedError = 128
The server doesn’t want or cannot describe the error
MalformedPacket = 129
The control packet cannot be parsed or is ill-formed
ProtocolError = 130
The control packet is well formed but invalid according to specifications.
ImplementationSpecificError = 131
The operation is valid but not accepted by, the server
UnsupportedProtocolVersion = 132
The requested MQTT version is not supported
ClientIdentifierNotValid = 133
The client identifier is not valid
BadUserNameOrPassword = 134
The server does not accept the given user name or password
NotAuthorized = 135
The operation is not permitted
The server is not available
ServerBusy = 137
The server is busy
Banned = 138
The client is banned
ServerShuttingDown = 139
The server is currently shutting down
BadAuthenticationMethod = 140
The authentication method is not supported by the server
KeepAliveTimeout = 141
The connection is closed because not packet has been received for 1.5 times the keep alive period.
SessionTakenOver = 142
Another connection using the same client id has connected, causing this connection to be closed.
TopicFilterInvalid = 143
The topic filter is correctly formed but not accepted by the server.
TopicNameInvalid = 144
The topic name is correctly formed but not accepted by the server
PacketIdentifierInUse = 145
The packet identifier is already in use. This might indicate a mismatch in the session state between the client and the server.
PacketIdentifierNotFound = 146
The Packet Identifier is not known. This is not an error during recovery, but at other times indicates a mismatch between the Session State on the Client and Server.
ReceiveMaximumExceeded = 147
The Client or Server has received more than receive maximum.
TopicAliasInvalid = 148
The topic alias is invalid
PacketTooLarge = 149
The packet size is greater than the maximum packet size fo rthis client or server.
MessageRateTooHigh = 150
The received data is too high
QuotaExceeded = 151
An implementation or administrative limite has been exceeded
AdministrativeAction = 152
The connection is closed due to an administrative action
PayloadFormatInvalid = 153
The payload format does not match the one indicated in the payload format indicator.
RetainNotSupported = 154
The server does not support retain messages
QoSNotSupported = 155
The client specified a QoS greater than the maximum indicated in the
Connack
packet.
UseAnotherServer = 156
The client should temporarily change its server.
ServerMoved = 157
The client should permanently change its server.
The server does not support shared subscriptions
ConnectionRateExceeded = 159
The connection is closed because the connection rate is too high
MaximumConnectTime = 160
The maximum connect time authorized for this connection has exceeded.
SubscriptionIdentifiersNotSupported = 161
The server does no support subscription identifiers.
WildcardSubscriptionsNotSupported = 162
The server does not support wildcard subcriptions.
Trait Implementations§
Source§impl Clone for ReasonCode
impl Clone for ReasonCode
Source§fn clone(&self) -> ReasonCode
fn clone(&self) -> ReasonCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more