Enum ntex_mqtt::v5::codec::DisconnectReasonCode
source · #[repr(u8)]
pub enum DisconnectReasonCode {
Show 30 variants
NormalDisconnection,
DisconnectWithWillMessage,
UnspecifiedError,
MalformedPacket,
ProtocolError,
ImplementationSpecificError,
NotAuthorized,
ServerBusy,
ServerShuttingDown,
BadAuthenticationMethod,
KeepAliveTimeout,
SessionTakenOver,
TopicFilterInvalid,
TopicNameInvalid,
ReceiveMaximumExceeded,
TopicAliasInvalid,
PacketTooLarge,
MessageRateTooHigh,
QuotaExceeded,
AdministrativeAction,
PayloadFormatInvalid,
RetainNotSupported,
QosNotSupported,
UseAnotherServer,
ServerMoved,
SharedSubscriptionNotSupported,
ConnectionRateExceeded,
MaximumConnectTime,
SubscriptionIdentifiersNotSupported,
WildcardSubscriptionsNotSupported,
}
Expand description
DISCONNECT reason codes
Variants§
NormalDisconnection
DisconnectWithWillMessage
UnspecifiedError
MalformedPacket
ProtocolError
ImplementationSpecificError
NotAuthorized
ServerBusy
ServerShuttingDown
BadAuthenticationMethod
KeepAliveTimeout
SessionTakenOver
TopicFilterInvalid
TopicNameInvalid
ReceiveMaximumExceeded
TopicAliasInvalid
PacketTooLarge
MessageRateTooHigh
QuotaExceeded
AdministrativeAction
PayloadFormatInvalid
RetainNotSupported
QosNotSupported
UseAnotherServer
ServerMoved
ConnectionRateExceeded
MaximumConnectTime
SubscriptionIdentifiersNotSupported
WildcardSubscriptionsNotSupported
Trait Implementations§
source§impl Clone for DisconnectReasonCode
impl Clone for DisconnectReasonCode
source§fn clone(&self) -> DisconnectReasonCode
fn clone(&self) -> DisconnectReasonCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DisconnectReasonCode
impl Debug for DisconnectReasonCode
source§impl From<DisconnectReasonCode> for u8
impl From<DisconnectReasonCode> for u8
source§fn from(v: DisconnectReasonCode) -> Self
fn from(v: DisconnectReasonCode) -> Self
Converts to this type from the input type.
source§impl PartialEq<DisconnectReasonCode> for DisconnectReasonCode
impl PartialEq<DisconnectReasonCode> for DisconnectReasonCode
source§fn eq(&self, other: &DisconnectReasonCode) -> bool
fn eq(&self, other: &DisconnectReasonCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.