Enum ntex_mqtt::v3::codec::ConnectAckReason
source · #[repr(u8)]
pub enum ConnectAckReason {
ConnectionAccepted,
UnacceptableProtocolVersion,
IdentifierRejected,
ServiceUnavailable,
BadUserNameOrPassword,
NotAuthorized,
Reserved,
}
Expand description
Connect Return Code
Variants§
ConnectionAccepted
Connection accepted
UnacceptableProtocolVersion
Connection Refused, unacceptable protocol version
IdentifierRejected
Connection Refused, identifier rejected
Connection Refused, Server unavailable
BadUserNameOrPassword
Connection Refused, bad user name or password
NotAuthorized
Connection Refused, not authorized
Reserved
Reserved
Implementations§
Trait Implementations§
source§impl Clone for ConnectAckReason
impl Clone for ConnectAckReason
source§fn clone(&self) -> ConnectAckReason
fn clone(&self) -> ConnectAckReason
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 ConnectAckReason
impl Debug for ConnectAckReason
source§impl From<ConnectAckReason> for u8
impl From<ConnectAckReason> for u8
source§fn from(v: ConnectAckReason) -> Self
fn from(v: ConnectAckReason) -> Self
Converts to this type from the input type.
source§impl PartialEq<ConnectAckReason> for ConnectAckReason
impl PartialEq<ConnectAckReason> for ConnectAckReason
source§fn eq(&self, other: &ConnectAckReason) -> bool
fn eq(&self, other: &ConnectAckReason) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.