Enum paho_mqtt::reason_code::ReasonCode
source · [−]#[repr(u8)]
pub enum ReasonCode {
Show 44 variants
Success,
GrantedQos1,
GrantedQos2,
DisconnectWithWillMessage,
NoMatchingSubscribers,
NoSubscriptionFound,
ContinueAuthentication,
ReAuthenticate,
UnspecifiedError,
MalformedPacket,
ProtocolError,
ImplementationSpecificError,
UnsupportedProtocolVersion,
ClientIdentifierNotValid,
BadUserNameOrPassword,
NotAuthorized,
ServerUnavailable,
ServerBusy,
Banned,
ServerShuttingDown,
BadAuthenticationMethod,
KeepAliveTimeout,
SessionTakenOver,
TopicFilterInvalid,
TopicNameInvalid,
PacketIdentifierInUse,
PacketIdentifierNotFound,
ReceiveMaximumExceeded,
TopicAliasInvalid,
PacketTooLarge,
MessageRateTooHigh,
QuotaExceeded,
AdministrativeAction,
PayloadFormatInvalid,
RetainNotSupported,
QosNotSupported,
UseAnotherServer,
ServerMoved,
SharedSubscriptionsNotSupported,
ConnectionRateExceeded,
MaximumConnectTime,
SubscriptionIdentifiersNotSupported,
WildcardSubscriptionsNotSupported,
MqttppV3Code,
}
Expand description
MQTT v5 single-byte reason codes.
Variants
Success
GrantedQos1
GrantedQos2
DisconnectWithWillMessage
NoMatchingSubscribers
NoSubscriptionFound
ContinueAuthentication
ReAuthenticate
UnspecifiedError
MalformedPacket
ProtocolError
ImplementationSpecificError
UnsupportedProtocolVersion
ClientIdentifierNotValid
BadUserNameOrPassword
NotAuthorized
ServerUnavailable
ServerBusy
Banned
ServerShuttingDown
BadAuthenticationMethod
KeepAliveTimeout
SessionTakenOver
TopicFilterInvalid
TopicNameInvalid
PacketIdentifierInUse
PacketIdentifierNotFound
ReceiveMaximumExceeded
TopicAliasInvalid
PacketTooLarge
MessageRateTooHigh
QuotaExceeded
AdministrativeAction
PayloadFormatInvalid
RetainNotSupported
QosNotSupported
UseAnotherServer
ServerMoved
SharedSubscriptionsNotSupported
ConnectionRateExceeded
MaximumConnectTime
SubscriptionIdentifiersNotSupported
WildcardSubscriptionsNotSupported
MqttppV3Code
Implementations
Trait Implementations
sourceimpl Clone for ReasonCode
impl Clone for ReasonCode
sourcefn clone(&self) -> ReasonCode
fn clone(&self) -> ReasonCode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ReasonCode
impl Debug for ReasonCode
sourceimpl Default for ReasonCode
impl Default for ReasonCode
sourceimpl Display for ReasonCode
impl Display for ReasonCode
sourceimpl From<u32> for ReasonCode
impl From<u32> for ReasonCode
sourcefn from(code: MQTTReasonCodes) -> Self
fn from(code: MQTTReasonCodes) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ReasonCode> for ReasonCode
impl PartialEq<ReasonCode> for ReasonCode
impl Copy for ReasonCode
impl StructuralPartialEq for ReasonCode
Auto Trait Implementations
impl RefUnwindSafe for ReasonCode
impl Send for ReasonCode
impl Sync for ReasonCode
impl Unpin for ReasonCode
impl UnwindSafe for ReasonCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more