mqtt5_return_codes

Enum mqtt5_return_codes 

Source
#[repr(u32)]
pub enum mqtt5_return_codes {
Show 43 variants MQTT_RC_SUCCESS = 0, MQTT_RC_GRANTED_QOS1 = 1, MQTT_RC_GRANTED_QOS2 = 2, MQTT_RC_DISCONNECT_WITH_WILL_MSG = 4, MQTT_RC_NO_MATCHING_SUBSCRIBERS = 16, MQTT_RC_NO_SUBSCRIPTION_EXISTED = 17, MQTT_RC_CONTINUE_AUTHENTICATION = 24, MQTT_RC_REAUTHENTICATE = 25, MQTT_RC_UNSPECIFIED = 128, MQTT_RC_MALFORMED_PACKET = 129, MQTT_RC_PROTOCOL_ERROR = 130, MQTT_RC_IMPLEMENTATION_SPECIFIC = 131, MQTT_RC_UNSUPPORTED_PROTOCOL_VERSION = 132, MQTT_RC_CLIENTID_NOT_VALID = 133, MQTT_RC_BAD_USERNAME_OR_PASSWORD = 134, MQTT_RC_NOT_AUTHORIZED = 135, MQTT_RC_SERVER_UNAVAILABLE = 136, MQTT_RC_SERVER_BUSY = 137, MQTT_RC_BANNED = 138, MQTT_RC_SERVER_SHUTTING_DOWN = 139, MQTT_RC_BAD_AUTHENTICATION_METHOD = 140, MQTT_RC_KEEP_ALIVE_TIMEOUT = 141, MQTT_RC_SESSION_TAKEN_OVER = 142, MQTT_RC_TOPIC_FILTER_INVALID = 143, MQTT_RC_TOPIC_NAME_INVALID = 144, MQTT_RC_PACKET_ID_IN_USE = 145, MQTT_RC_PACKET_ID_NOT_FOUND = 146, MQTT_RC_RECEIVE_MAXIMUM_EXCEEDED = 147, MQTT_RC_TOPIC_ALIAS_INVALID = 148, MQTT_RC_PACKET_TOO_LARGE = 149, MQTT_RC_MESSAGE_RATE_TOO_HIGH = 150, MQTT_RC_QUOTA_EXCEEDED = 151, MQTT_RC_ADMINISTRATIVE_ACTION = 152, MQTT_RC_PAYLOAD_FORMAT_INVALID = 153, MQTT_RC_RETAIN_NOT_SUPPORTED = 154, MQTT_RC_QOS_NOT_SUPPORTED = 155, MQTT_RC_USE_ANOTHER_SERVER = 156, MQTT_RC_SERVER_MOVED = 157, MQTT_RC_SHARED_SUBS_NOT_SUPPORTED = 158, MQTT_RC_CONNECTION_RATE_EXCEEDED = 159, MQTT_RC_MAXIMUM_CONNECT_TIME = 160, MQTT_RC_SUBSCRIPTION_IDS_NOT_SUPPORTED = 161, MQTT_RC_WILDCARD_SUBS_NOT_SUPPORTED = 162,
}

Variants§

§

MQTT_RC_SUCCESS = 0

§

MQTT_RC_GRANTED_QOS1 = 1

§

MQTT_RC_GRANTED_QOS2 = 2

§

MQTT_RC_DISCONNECT_WITH_WILL_MSG = 4

§

MQTT_RC_NO_MATCHING_SUBSCRIBERS = 16

§

MQTT_RC_NO_SUBSCRIPTION_EXISTED = 17

§

MQTT_RC_CONTINUE_AUTHENTICATION = 24

§

MQTT_RC_REAUTHENTICATE = 25

§

MQTT_RC_UNSPECIFIED = 128

§

MQTT_RC_MALFORMED_PACKET = 129

§

MQTT_RC_PROTOCOL_ERROR = 130

§

MQTT_RC_IMPLEMENTATION_SPECIFIC = 131

§

MQTT_RC_UNSUPPORTED_PROTOCOL_VERSION = 132

§

MQTT_RC_CLIENTID_NOT_VALID = 133

§

MQTT_RC_BAD_USERNAME_OR_PASSWORD = 134

§

MQTT_RC_NOT_AUTHORIZED = 135

§

MQTT_RC_SERVER_UNAVAILABLE = 136

§

MQTT_RC_SERVER_BUSY = 137

§

MQTT_RC_BANNED = 138

§

MQTT_RC_SERVER_SHUTTING_DOWN = 139

§

MQTT_RC_BAD_AUTHENTICATION_METHOD = 140

§

MQTT_RC_KEEP_ALIVE_TIMEOUT = 141

§

MQTT_RC_SESSION_TAKEN_OVER = 142

§

MQTT_RC_TOPIC_FILTER_INVALID = 143

§

MQTT_RC_TOPIC_NAME_INVALID = 144

§

MQTT_RC_PACKET_ID_IN_USE = 145

§

MQTT_RC_PACKET_ID_NOT_FOUND = 146

§

MQTT_RC_RECEIVE_MAXIMUM_EXCEEDED = 147

§

MQTT_RC_TOPIC_ALIAS_INVALID = 148

§

MQTT_RC_PACKET_TOO_LARGE = 149

§

MQTT_RC_MESSAGE_RATE_TOO_HIGH = 150

§

MQTT_RC_QUOTA_EXCEEDED = 151

§

MQTT_RC_ADMINISTRATIVE_ACTION = 152

§

MQTT_RC_PAYLOAD_FORMAT_INVALID = 153

§

MQTT_RC_RETAIN_NOT_SUPPORTED = 154

§

MQTT_RC_QOS_NOT_SUPPORTED = 155

§

MQTT_RC_USE_ANOTHER_SERVER = 156

§

MQTT_RC_SERVER_MOVED = 157

§

MQTT_RC_SHARED_SUBS_NOT_SUPPORTED = 158

§

MQTT_RC_CONNECTION_RATE_EXCEEDED = 159

§

MQTT_RC_MAXIMUM_CONNECT_TIME = 160

§

MQTT_RC_SUBSCRIPTION_IDS_NOT_SUPPORTED = 161

§

MQTT_RC_WILDCARD_SUBS_NOT_SUPPORTED = 162

Implementations§

Source§

impl mqtt5_return_codes

Source

pub const MQTT_RC_NORMAL_DISCONNECTION: mqtt5_return_codes = mqtt5_return_codes::MQTT_RC_SUCCESS

Source§

impl mqtt5_return_codes

Source

pub const MQTT_RC_GRANTED_QOS0: mqtt5_return_codes = mqtt5_return_codes::MQTT_RC_SUCCESS

Trait Implementations§

Source§

impl Clone for mqtt5_return_codes

Source§

fn clone(&self) -> mqtt5_return_codes

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 mqtt5_return_codes

Source§

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

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

impl Hash for mqtt5_return_codes

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for mqtt5_return_codes

Source§

fn eq(&self, other: &mqtt5_return_codes) -> 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 Copy for mqtt5_return_codes

Source§

impl Eq for mqtt5_return_codes

Source§

impl StructuralPartialEq for mqtt5_return_codes

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.