pub enum ReasonCode {
Show 46 variants
Success,
GrantedQoS1,
GrantedQoS2,
DisconnectWithWillMessage,
NoMatchingSubscribers,
NoSubscriptionExisted,
ContinueAuth,
ReAuthenticate,
UnspecifiedError,
MalformedPacket,
ProtocolError,
ImplementationSpecificError,
UnsupportedProtocolVersion,
ClientIdNotValid,
BadUserNameOrPassword,
NotAuthorized,
ServerUnavailable,
ServerBusy,
Banned,
ServerShuttingDown,
BadAuthMethod,
KeepAliveTimeout,
SessionTakeOver,
TopicFilterInvalid,
TopicNameInvalid,
PacketIdentifierInUse,
PacketIdentifierNotFound,
ReceiveMaximumExceeded,
TopicAliasInvalid,
PacketTooLarge,
MessageRateTooHigh,
QuotaExceeded,
AdministrativeAction,
PayloadFormatInvalid,
RetainNotSupported,
QoSNotSupported,
UseAnotherServer,
ServerMoved,
SharedSubscriptionNotSupported,
ConnectionRateExceeded,
MaximumConnectTime,
SubscriptionIdentifiersNotSupported,
WildcardSubscriptionNotSupported,
TimerNotSupported,
BuffError,
NetworkError,
}
Variants§
Success
GrantedQoS1
GrantedQoS2
DisconnectWithWillMessage
NoMatchingSubscribers
NoSubscriptionExisted
ContinueAuth
ReAuthenticate
UnspecifiedError
MalformedPacket
ProtocolError
ImplementationSpecificError
UnsupportedProtocolVersion
ClientIdNotValid
BadUserNameOrPassword
NotAuthorized
ServerBusy
Banned
ServerShuttingDown
BadAuthMethod
KeepAliveTimeout
SessionTakeOver
TopicFilterInvalid
TopicNameInvalid
PacketIdentifierInUse
PacketIdentifierNotFound
ReceiveMaximumExceeded
TopicAliasInvalid
PacketTooLarge
MessageRateTooHigh
QuotaExceeded
AdministrativeAction
PayloadFormatInvalid
RetainNotSupported
QoSNotSupported
UseAnotherServer
ServerMoved
ConnectionRateExceeded
MaximumConnectTime
SubscriptionIdentifiersNotSupported
WildcardSubscriptionNotSupported
TimerNotSupported
BuffError
NetworkError
Trait Implementations§
Source§impl Debug for ReasonCode
impl Debug for ReasonCode
Source§impl Display for ReasonCode
impl Display for ReasonCode
Source§impl From<ReasonCode> for u8
impl From<ReasonCode> for u8
Source§fn from(value: ReasonCode) -> Self
fn from(value: ReasonCode) -> Self
Converts to this type from the input type.
Source§impl From<u8> for ReasonCode
impl From<u8> for ReasonCode
Source§impl PartialEq for ReasonCode
impl PartialEq for ReasonCode
impl StructuralPartialEq for ReasonCode
Auto Trait Implementations§
impl Freeze for ReasonCode
impl RefUnwindSafe for ReasonCode
impl Send for ReasonCode
impl Sync for ReasonCode
impl Unpin for ReasonCode
impl UnwindSafe for ReasonCode
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