#[repr(u8)]pub enum ConnectReasonCode {
Show 22 variants
Success = 0,
UnspecifiedError = 128,
MalformedPacket = 129,
ProtocolError = 130,
ImplementationSpecificError = 131,
UnsupportedProtocolVersion = 132,
ClientIdentifierNotValid = 133,
BadUserNameOrPassword = 134,
NotAuthorized = 135,
ServerUnavailable = 136,
ServerBusy = 137,
Banned = 138,
BadAuthenticationMethod = 140,
TopicNameInvalid = 144,
PacketTooLarge = 149,
QuotaExceeded = 151,
PayloadFormatInvalid = 153,
RetainNotSupported = 154,
QosNotSupported = 155,
UseAnotherServer = 156,
ServerMoved = 157,
ConnectionRateExceeded = 159,
}
Expand description
MQTT v5.0 Connect Reason Code (used in CONNACK)
Variants§
Success = 0
UnspecifiedError = 128
MalformedPacket = 129
ProtocolError = 130
ImplementationSpecificError = 131
UnsupportedProtocolVersion = 132
ClientIdentifierNotValid = 133
BadUserNameOrPassword = 134
NotAuthorized = 135
ServerBusy = 137
Banned = 138
BadAuthenticationMethod = 140
TopicNameInvalid = 144
PacketTooLarge = 149
QuotaExceeded = 151
PayloadFormatInvalid = 153
RetainNotSupported = 154
QosNotSupported = 155
UseAnotherServer = 156
ServerMoved = 157
ConnectionRateExceeded = 159
Trait Implementations§
Source§impl Clone for ConnectReasonCode
impl Clone for ConnectReasonCode
Source§fn clone(&self) -> ConnectReasonCode
fn clone(&self) -> ConnectReasonCode
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 moreSource§impl Debug for ConnectReasonCode
impl Debug for ConnectReasonCode
Source§impl Display for ConnectReasonCode
impl Display for ConnectReasonCode
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 Hash for ConnectReasonCode
impl Hash for ConnectReasonCode
Source§impl PartialEq for ConnectReasonCode
impl PartialEq for ConnectReasonCode
Source§impl Serialize for ConnectReasonCode
impl Serialize for ConnectReasonCode
Source§impl TryFrom<u8> for ConnectReasonCode
impl TryFrom<u8> for ConnectReasonCode
Source§type Error = TryFromPrimitiveError<ConnectReasonCode>
type Error = TryFromPrimitiveError<ConnectReasonCode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ConnectReasonCode
impl TryFromPrimitive for ConnectReasonCode
const NAME: &'static str = "ConnectReasonCode"
type Primitive = u8
type Error = TryFromPrimitiveError<ConnectReasonCode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for ConnectReasonCode
impl Eq for ConnectReasonCode
impl StructuralPartialEq for ConnectReasonCode
Auto Trait Implementations§
impl Freeze for ConnectReasonCode
impl RefUnwindSafe for ConnectReasonCode
impl Send for ConnectReasonCode
impl Sync for ConnectReasonCode
impl Unpin for ConnectReasonCode
impl UnwindSafe for ConnectReasonCode
Blanket Implementations§
Source§impl<T> AsConcrete<T> for T
impl<T> AsConcrete<T> for T
fn as_concrete(&self) -> Option<&T>
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.