#[repr(u8)]
pub enum ReasonCode {
Show 44 variants Success, GrantedQos1, GrantedQos2, DisconnectWithWillMessage, NoMatchingSubscribers, NoSubscriptionFound, ContinueAuthentication, ReAuthenticate, UnspecifiedError, MalformedPacket, ProtocolError, ImplementationSpecificError, UnsupportedProtocolVersion, ClientIdentifierNotValid, BadUserNameOrPassword, NotAuthorized, ServerUnavailable, ServerBusy, Banned, ServerShuttingDown, BadAuthenticationMethod, KeepAliveTimeout, SessionTakenOver, TopicFilterInvalid, TopicNameInvalid, PacketIdentifierInUse, PacketIdentifierNotFound, ReceiveMaximumExceeded, TopicAliasInvalid, PacketTooLarge, MessageRateTooHigh, QuotaExceeded, AdministrativeAction, PayloadFormatInvalid, RetainNotSupported, QosNotSupported, UseAnotherServer, ServerMoved, SharedSubscriptionsNotSupported, ConnectionRateExceeded, MaximumConnectTime, SubscriptionIdentifiersNotSupported, WildcardSubscriptionsNotSupported, MqttppV3Code,
}
Expand description

MQTT v5 single-byte reason codes.

Variants

Success

GrantedQos1

GrantedQos2

DisconnectWithWillMessage

NoMatchingSubscribers

NoSubscriptionFound

ContinueAuthentication

ReAuthenticate

UnspecifiedError

MalformedPacket

ProtocolError

ImplementationSpecificError

UnsupportedProtocolVersion

ClientIdentifierNotValid

BadUserNameOrPassword

NotAuthorized

ServerUnavailable

ServerBusy

Banned

ServerShuttingDown

BadAuthenticationMethod

KeepAliveTimeout

SessionTakenOver

TopicFilterInvalid

TopicNameInvalid

PacketIdentifierInUse

PacketIdentifierNotFound

ReceiveMaximumExceeded

TopicAliasInvalid

PacketTooLarge

MessageRateTooHigh

QuotaExceeded

AdministrativeAction

PayloadFormatInvalid

RetainNotSupported

QosNotSupported

UseAnotherServer

ServerMoved

SharedSubscriptionsNotSupported

ConnectionRateExceeded

MaximumConnectTime

SubscriptionIdentifiersNotSupported

WildcardSubscriptionsNotSupported

MqttppV3Code

Implementations

Reason codes less than 0x80 indicate a successful operation.

Reason codes of 0x80 or greater indicate failure.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.