Enum ConnectReasonCode

Source
#[repr(u8)]
pub enum ConnectReasonCode {
Show 21 variants 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,
}
Expand description

Variants§

§

UnspecifiedError = 128

The Server does not wish to reveal the reason for the failure, or none of the other Reason Codes apply.

§

MalformedPacket = 129

Data within the CONNECT packet could not be correctly parsed.

§

ProtocolError = 130

Data in the CONNECT packet does not conform to this specification.

§

ImplementationSpecificError = 131

The CONNECT is valid but is not accepted by this Server.

§

UnsupportedProtocolVersion = 132

The Server does not support the version of the MQTT protocol requested by the Client.

§

ClientIdentifierNotValid = 133

The Client Identifier is a valid string but is not allowed by the Server.

§

BadUserNameOrPassword = 134

The Server does not accept the User Name or Password specified by the Client

§

NotAuthorized = 135

The Client is not authorized to connect.

§

ServerUnavailable = 136

The MQTT Server is not available.

§

ServerBusy = 137

The Server is busy. Try again later.

§

Banned = 138

This Client has been banned by administrative action. Contact the server administrator.

§

BadAuthenticationMethod = 140

The authentication method is not supported or does not match the authentication method currently in use.

§

TopicNameInvalid = 144

The Will Topic Name is not malformed, but is not accepted by this Server.

§

PacketTooLarge = 149

The CONNECT packet exceeded the maximum permissible size.

§

QuotaExceeded = 151

An implementation or administrative imposed limit has been exceeded.

§

PayloadFormatInvalid = 153

The Will Payload does not match the specified Payload Format Indicator.

§

RetainNotSupported = 154

The Server does not support retained messages, and Will Retain was set to 1.

§

QoSNotSupported = 155

The Server does not support the QoS set in Will QoS.

§

UseAnotherServer = 156

The Client should temporarily use another server.

§

ServerMoved = 157

The Client should permanently use another server.

§

ConnectionRateExceeded = 159

The connection rate limit has been exceeded

Trait Implementations§

Source§

impl Clone for ConnectReasonCode

Source§

fn clone(&self) -> ConnectReasonCode

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ConnectReasonCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Format for ConnectReasonCode

Source§

fn format(&self, f: Formatter<'_>)

Writes the defmt representation of self to fmt.
Source§

impl PartialEq for ConnectReasonCode

Source§

fn eq(&self, other: &ConnectReasonCode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<u8> for ConnectReasonCode

Source§

type Error = u8

The type returned in the event of a conversion error.
Source§

fn try_from(value: u8) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for ConnectReasonCode

Source§

impl Eq for ConnectReasonCode

Source§

impl StructuralPartialEq for ConnectReasonCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.