#[repr(u16)]pub enum MqttError {
Show 49 variants
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,
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,
PartialErrorDetected = 257,
PacketEnqueued = 258,
AllErrorDetected = 384,
PacketIdentifierFullyUsed = 385,
PacketIdentifierConflict = 386,
PacketIdentifierInvalid = 387,
PacketNotAllowedToSend = 388,
PacketNotAllowedToStore = 389,
PacketNotRegulated = 390,
InsufficientBytes = 391,
InvalidPacketForRole = 392,
VersionMismatch = 393,
PacketConversionFailed = 394,
PacketProcessFailed = 395,
ValueOutOfRange = 396,
InvalidQos = 397,
}
Variants§
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
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
PartialErrorDetected = 257
PacketEnqueued = 258
AllErrorDetected = 384
PacketIdentifierFullyUsed = 385
PacketIdentifierConflict = 386
PacketIdentifierInvalid = 387
PacketNotAllowedToSend = 388
PacketNotAllowedToStore = 389
PacketNotRegulated = 390
InsufficientBytes = 391
InvalidPacketForRole = 392
VersionMismatch = 393
PacketConversionFailed = 394
PacketProcessFailed = 395
ValueOutOfRange = 396
InvalidQos = 397
Trait Implementations§
Source§impl From<AuthReasonCode> for MqttError
impl From<AuthReasonCode> for MqttError
Source§fn from(code: AuthReasonCode) -> Self
fn from(code: AuthReasonCode) -> Self
Converts to this type from the input type.
Source§impl From<ConnectReasonCode> for MqttError
impl From<ConnectReasonCode> for MqttError
Source§fn from(code: ConnectReasonCode) -> Self
fn from(code: ConnectReasonCode) -> Self
Converts to this type from the input type.
Source§impl From<DisconnectReasonCode> for MqttError
impl From<DisconnectReasonCode> for MqttError
Source§fn from(code: DisconnectReasonCode) -> Self
fn from(code: DisconnectReasonCode) -> Self
Converts to this type from the input type.
Source§impl From<Infallible> for MqttError
impl From<Infallible> for MqttError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<MqttError> for DisconnectReasonCode
impl From<MqttError> for DisconnectReasonCode
Source§impl From<PubackReasonCode> for MqttError
impl From<PubackReasonCode> for MqttError
Source§fn from(code: PubackReasonCode) -> Self
fn from(code: PubackReasonCode) -> Self
Converts to this type from the input type.
Source§impl From<PubcompReasonCode> for MqttError
impl From<PubcompReasonCode> for MqttError
Source§fn from(code: PubcompReasonCode) -> Self
fn from(code: PubcompReasonCode) -> Self
Converts to this type from the input type.
Source§impl From<PubrecReasonCode> for MqttError
impl From<PubrecReasonCode> for MqttError
Source§fn from(code: PubrecReasonCode) -> Self
fn from(code: PubrecReasonCode) -> Self
Converts to this type from the input type.
Source§impl From<PubrelReasonCode> for MqttError
impl From<PubrelReasonCode> for MqttError
Source§fn from(code: PubrelReasonCode) -> Self
fn from(code: PubrelReasonCode) -> Self
Converts to this type from the input type.
Source§impl From<SubackReasonCode> for MqttError
impl From<SubackReasonCode> for MqttError
Source§fn from(code: SubackReasonCode) -> Self
fn from(code: SubackReasonCode) -> Self
Converts to this type from the input type.
Source§impl From<UninitializedFieldError> for MqttError
impl From<UninitializedFieldError> for MqttError
Source§fn from(_: UninitializedFieldError) -> Self
fn from(_: UninitializedFieldError) -> Self
Converts to this type from the input type.
Source§impl From<UnsubackReasonCode> for MqttError
impl From<UnsubackReasonCode> for MqttError
Source§fn from(code: UnsubackReasonCode) -> Self
fn from(code: UnsubackReasonCode) -> Self
Converts to this type from the input type.
impl Copy for MqttError
impl Eq for MqttError
impl StructuralPartialEq for MqttError
Auto Trait Implementations§
impl Freeze for MqttError
impl RefUnwindSafe for MqttError
impl Send for MqttError
impl Sync for MqttError
impl Unpin for MqttError
impl UnwindSafe for MqttError
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.