[][src]Enum sage_mqtt::ReasonCode

pub enum ReasonCode {
    Success,
    NormalDisconnection,
    GrantedQoS0,
    GrantedQoS1,
    GrantedQoS2,
    DisconnectWithWillMessage,
    NoMatchingSubscribers,
    NoSubscriptionExisted,
    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,
}

Variants

Success
NormalDisconnection
GrantedQoS0
GrantedQoS1
GrantedQoS2
DisconnectWithWillMessage
NoMatchingSubscribers
NoSubscriptionExisted
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

Methods

impl ReasonCode[src]

pub fn try_parse(code: u8, packet_type: ControlPacketType) -> SageResult<Self>[src]

Trait Implementations

impl Clone for ReasonCode[src]

impl Copy for ReasonCode[src]

impl Debug for ReasonCode[src]

impl From<ReasonCode> for u8[src]

impl PartialEq<ReasonCode> for ReasonCode[src]

impl StructuralPartialEq for ReasonCode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.