#[repr(u8)]pub enum DisconnectReasonCode {
Show 30 variants
NormalDisconnection = 0,
DisconnectWithWillMessage = 4,
UnspecifiedError = 128,
MalformedPacket = 129,
ProtocolError = 130,
ImplementationSpecificError = 131,
NotAuthorized = 135,
ServerBusy = 137,
ServerShuttingDown = 139,
BadAuthenticationMethod = 140,
KeepAliveTimeout = 141,
SessionTakenOver = 142,
TopicFilterInvalid = 143,
TopicNameInvalid = 144,
ReceiveMaximumExceeded = 147,
TopicAliasInvalid = 148,
PacketTooLarge = 149,
MessageRateTooHigh = 150,
QuotaExceeded = 151,
AdministrativeAction = 152,
PayloadFormatInvalid = 153,
RetainNotSupported = 154,
QosNotSupported = 155,
UseAnotherServer = 156,
ServerMoved = 157,
SharedSubscriptionNotSupported = 158,
ConnectionRateExceeded = 159,
MaximumConnectTime = 160,
SubscriptionIdentifiersNotSupported = 161,
WildcardSubscriptionsNotSupported = 162,
}
Expand description
DISCONNECT reason codes
Variants§
NormalDisconnection = 0
DisconnectWithWillMessage = 4
UnspecifiedError = 128
MalformedPacket = 129
ProtocolError = 130
ImplementationSpecificError = 131
NotAuthorized = 135
ServerBusy = 137
ServerShuttingDown = 139
BadAuthenticationMethod = 140
KeepAliveTimeout = 141
SessionTakenOver = 142
TopicFilterInvalid = 143
TopicNameInvalid = 144
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
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 for DisconnectReasonCode
impl PartialEq for DisconnectReasonCode
source§impl TryFrom<u8> for DisconnectReasonCode
impl TryFrom<u8> for DisconnectReasonCode
impl Copy for DisconnectReasonCode
impl Eq for DisconnectReasonCode
impl StructuralPartialEq for DisconnectReasonCode
Auto Trait Implementations§
impl Freeze for DisconnectReasonCode
impl RefUnwindSafe for DisconnectReasonCode
impl Send for DisconnectReasonCode
impl Sync for DisconnectReasonCode
impl Unpin for DisconnectReasonCode
impl UnwindSafe for DisconnectReasonCode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)