Enum rust_mqtt::packet::v5::reason_codes::ReasonCode
source · pub enum ReasonCode {
Show 46 variants
Success,
GrantedQoS1,
GrantedQoS2,
DisconnectWithWillMessage,
NoMatchingSubscribers,
NoSubscriptionExisted,
ContinueAuth,
ReAuthenticate,
UnspecifiedError,
MalformedPacket,
ProtocolError,
ImplementationSpecificError,
UnsupportedProtocolVersion,
ClientIdNotValid,
BadUserNameOrPassword,
NotAuthorized,
ServerUnavailable,
ServerBusy,
Banned,
ServerShuttingDown,
BadAuthMethod,
KeepAliveTimeout,
SessionTakeOver,
TopicFilterInvalid,
TopicNameInvalid,
PacketIdentifierInUse,
PacketIdentifierNotFound,
ReceiveMaximumExceeded,
TopicAliasInvalid,
PacketTooLarge,
MessageRateTooHigh,
QuotaExceeded,
AdministrativeAction,
PayloadFormatInvalid,
RetainNotSupported,
QoSNotSupported,
UseAnotherServer,
ServerMoved,
SharedSubscriptionNotSupported,
ConnectionRateExceeded,
MaximumConnectTime,
SubscriptionIdentifiersNotSupported,
WildcardSubscriptionNotSupported,
TimerNotSupported,
BuffError,
NetworkError,
}
Variants§
Success
GrantedQoS1
GrantedQoS2
DisconnectWithWillMessage
NoMatchingSubscribers
NoSubscriptionExisted
ContinueAuth
ReAuthenticate
UnspecifiedError
MalformedPacket
ProtocolError
ImplementationSpecificError
UnsupportedProtocolVersion
ClientIdNotValid
BadUserNameOrPassword
NotAuthorized
ServerBusy
Banned
ServerShuttingDown
BadAuthMethod
KeepAliveTimeout
SessionTakeOver
TopicFilterInvalid
TopicNameInvalid
PacketIdentifierInUse
PacketIdentifierNotFound
ReceiveMaximumExceeded
TopicAliasInvalid
PacketTooLarge
MessageRateTooHigh
QuotaExceeded
AdministrativeAction
PayloadFormatInvalid
RetainNotSupported
QoSNotSupported
UseAnotherServer
ServerMoved
ConnectionRateExceeded
MaximumConnectTime
SubscriptionIdentifiersNotSupported
WildcardSubscriptionNotSupported
TimerNotSupported
BuffError
NetworkError
Trait Implementations§
source§impl Debug for ReasonCode
impl Debug for ReasonCode
source§impl Display for ReasonCode
impl Display for ReasonCode
source§impl From<ReasonCode> for u8
impl From<ReasonCode> for u8
source§fn from(value: ReasonCode) -> Self
fn from(value: ReasonCode) -> Self
Converts to this type from the input type.
source§impl From<u8> for ReasonCode
impl From<u8> for ReasonCode
source§impl PartialEq<ReasonCode> for ReasonCode
impl PartialEq<ReasonCode> for ReasonCode
source§fn eq(&self, other: &ReasonCode) -> bool
fn eq(&self, other: &ReasonCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.