Enum ReasonCode
#[repr(u8)]pub enum ReasonCode {
Show 44 variants
Success = 0,
GrantedQos1 = 1,
GrantedQos2 = 2,
DisconnectWithWillMessage = 4,
NoMatchingSubscribers = 16,
NoSubscriptionFound = 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,
MqttppV3Code = 255,
}Expand description
MQTT v5 single-byte reason codes.
Variants§
Success = 0
GrantedQos1 = 1
GrantedQos2 = 2
DisconnectWithWillMessage = 4
NoMatchingSubscribers = 16
NoSubscriptionFound = 17
ContinueAuthentication = 24
ReAuthenticate = 25
UnspecifiedError = 128
MalformedPacket = 129
ProtocolError = 130
ImplementationSpecificError = 131
UnsupportedProtocolVersion = 132
ClientIdentifierNotValid = 133
BadUserNameOrPassword = 134
NotAuthorized = 135
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
ConnectionRateExceeded = 159
MaximumConnectTime = 160
SubscriptionIdentifiersNotSupported = 161
WildcardSubscriptionsNotSupported = 162
MqttppV3Code = 255
Implementations§
§impl ReasonCode
impl ReasonCode
pub const NormalDisconnection: ReasonCode = ReasonCode::Success
pub const NormalDisconnection: ReasonCode = ReasonCode::Success
Reason code for a normal disconnect
pub const GrantedQos0: ReasonCode = ReasonCode::Success
pub const GrantedQos0: ReasonCode = ReasonCode::Success
Reason code for QoS 0 granted
Trait Implementations§
§impl Clone for ReasonCode
impl Clone for ReasonCode
§fn clone(&self) -> ReasonCode
fn clone(&self) -> ReasonCode
Returns a duplicate 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 more§impl Debug for ReasonCode
impl Debug for ReasonCode
§impl Default for ReasonCode
impl Default for ReasonCode
§fn default() -> ReasonCode
fn default() -> ReasonCode
Returns the “default value” for a type. Read more
§impl Display for ReasonCode
impl Display for ReasonCode
§impl From<u32> for ReasonCode
impl From<u32> for ReasonCode
§fn from(code: u32) -> ReasonCode
fn from(code: u32) -> ReasonCode
Converts to this type from the input type.
§impl PartialEq for ReasonCode
impl PartialEq for ReasonCode
impl Copy for ReasonCode
impl Eq for ReasonCode
impl StructuralPartialEq for ReasonCode
Auto Trait Implementations§
impl Freeze for ReasonCode
impl RefUnwindSafe for ReasonCode
impl Send for ReasonCode
impl Sync for ReasonCode
impl Unpin for ReasonCode
impl UnwindSafe for ReasonCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more