#[repr(u8)]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,
BadAuthenticationMethod = 140,
TopicNameInvalid = 144,
PacketTooLarge = 149,
QuotaExceeded = 151,
PayloadFormatInvalid = 153,
RetainNotSupported = 154,
QosNotSupported = 155,
UseAnotherServer = 156,
ServerMoved = 157,
ConnectionRateExceeded = 159,
}
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 ConnectReason
impl Clone for ConnectReason
Source§fn clone(&self) -> ConnectReason
fn clone(&self) -> ConnectReason
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 ConnectReason
impl Debug for ConnectReason
Source§impl PartialEq for ConnectReason
impl PartialEq for ConnectReason
Source§impl TryFrom<u8> for ConnectReason
impl TryFrom<u8> for ConnectReason
Source§type Error = TryFromPrimitiveError<ConnectReason>
type Error = TryFromPrimitiveError<ConnectReason>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ConnectReason
impl TryFromPrimitive for ConnectReason
impl Copy 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