pub enum ConnectReason {
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,
BadUthenticationMethod = 140,
TopicNameInvalid = 144,
PacketTooLarge = 149,
QuotaExceeded = 151,
PayloadFormatInvalid = 153,
RetainNotSupported = 154,
QoSNotSupported = 155,
UseAnotherServer = 156,
ServerMoved = 157,
ConnectionRateExceeded = 159,
}Expand description
Reason for CONNACK packet.
Variants§
Success = 0
UnspecifiedError = 128
MalformedPacket = 129
ProtocolError = 130
ImplementationSpecificError = 131
UnsupportedProtocolVersion = 132
ClientIdentifierNotValid = 133
BadUserNameOrPassword = 134
NotAuthorized = 135
ServerBusy = 137
Banned = 138
BadUthenticationMethod = 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 ConnectReason
impl Clone for ConnectReason
Source§fn clone(&self) -> ConnectReason
fn clone(&self) -> ConnectReason
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 ConnectReason
impl Debug for ConnectReason
Source§impl Default for ConnectReason
impl Default for ConnectReason
Source§impl PartialEq for ConnectReason
impl PartialEq for ConnectReason
Source§impl TryFrom<u8> for ConnectReason
impl TryFrom<u8> for ConnectReason
impl Copy for ConnectReason
impl Eq for ConnectReason
impl StructuralPartialEq for ConnectReason
Auto Trait Implementations§
impl Freeze for ConnectReason
impl RefUnwindSafe for ConnectReason
impl Send for ConnectReason
impl Sync for ConnectReason
impl Unpin for ConnectReason
impl UnwindSafe for ConnectReason
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more