#[repr(u8)]
pub enum DisconnectReasonCode {
Show 29 variants
NormalDisconnection,
DisconnectWithWillMessage,
UnspecifiedError,
MalformedPacket,
ProtocolError,
ImplementationSpecificError,
NotAuthorized,
ServerBusy,
ServerShuttingDown,
KeepAliveTimeout,
SessionTakenOver,
TopicFilterInvalid,
TopicNameInvalid,
ReceiveMaximumExceeded,
TopicAliasInvalid,
PacketTooLarge,
MessageRateTooHigh,
QuotaExceeded,
AdministrativeAction,
PayloadFormatInvalid,
RetainNotSupported,
QoSNotSupported,
UseAnotherServer,
ServerMoved,
SharedSubscriptionNotSupported,
ConnectionRateExceeded,
MaximumConnectTime,
SubscriptionIdentifiersNotSupported,
WildcardSubscriptionsNotSupported,
}Variants§
NormalDisconnection
Close the connection normally. Do not send the Will Message.
DisconnectWithWillMessage
The Client wishes to disconnect but requires that the Server also publishes its Will Message.
UnspecifiedError
The Connection is closed but the sender either does not wish to reveal the reason, or none of the other Reason Codes apply.
MalformedPacket
The received packet does not conform to this specification.
ProtocolError
An unexpected or out of order packet was received.
ImplementationSpecificError
The packet received is valid but cannot be processed by this implementation.
NotAuthorized
The request is not authorized.
ServerBusy
The Server is busy and cannot continue processing requests from this Client.
ServerShuttingDown
The Server is shutting down.
KeepAliveTimeout
The Connection is closed because no packet has been received for 1.5 times the Keepalive time.
SessionTakenOver
Another Connection using the same ClientID has connected causing this Connection to be closed.
TopicFilterInvalid
The Topic Filter is correctly formed, but is not accepted by this Sever.
TopicNameInvalid
The Topic Name is correctly formed, but is not accepted by this Client or Server.
ReceiveMaximumExceeded
The Client or Server has received more than Receive Maximum publication for which it has not sent PUBACK or PUBCOMP.
TopicAliasInvalid
The Client or Server has received a PUBLISH packet containing a Topic Alias which is greater than the Maximum Topic Alias it sent in the CONNECT or CONNACK packet.
PacketTooLarge
The packet size is greater than Maximum Packet Size for this Client or Server.
MessageRateTooHigh
The received data rate is too high.
QuotaExceeded
An implementation or administrative imposed limit has been exceeded.
AdministrativeAction
The Connection is closed due to an administrative action.
PayloadFormatInvalid
The payload format does not match the one specified by the Payload Format Indicator.
RetainNotSupported
The Server has does not support retained messages.
QoSNotSupported
The Client specified a QoS greater than the QoS specified in a Maximum QoS in the CONNACK.
UseAnotherServer
The Client should temporarily change its Server.
ServerMoved
The Server is moved and the Client should permanently change its server location.
The Server does not support Shared Subscriptions.
ConnectionRateExceeded
This connection is closed because the connection rate is too high.
MaximumConnectTime
The maximum connection time authorized for this connection has been exceeded.
SubscriptionIdentifiersNotSupported
The Server does not support Subscription Identifiers; the subscription is not accepted.
WildcardSubscriptionsNotSupported
The Server does not support Wildcard subscription; the subscription is not accepted.
Trait Implementations§
source§impl Clone for DisconnectReasonCode
impl Clone for DisconnectReasonCode
source§fn clone(&self) -> DisconnectReasonCode
fn clone(&self) -> DisconnectReasonCode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DisconnectReasonCode
impl Debug for DisconnectReasonCode
source§impl PartialEq<DisconnectReasonCode> for DisconnectReasonCode
impl PartialEq<DisconnectReasonCode> for DisconnectReasonCode
source§fn eq(&self, other: &DisconnectReasonCode) -> bool
fn eq(&self, other: &DisconnectReasonCode) -> bool
self and other values to be equal, and is used
by ==.