#[repr(u8)]pub enum ConnectReturnCode {
Accepted = 0,
UnacceptedProtocol = 1,
IdentifierRejected = 2,
ServerUnavailable = 3,
MalformedUsernamePassword = 4,
Unauthorized = 5,
Reserved = 6,
}Expand description
If the Server sends a ConnectAck packet with non-zero return code, it MUST
close the network connection.
Variants§
Accepted = 0
Connection accepted.
UnacceptedProtocol = 1
The server do not support the level of the MQTT protocol requested by the Client.
IdentifierRejected = 2
The Client identifier is correct UTF-8 but not allowed by the Server.
The Network Connection has been made but the MQTT service is unavailable.
MalformedUsernamePassword = 4
The data in the username or password is malformed.
The Client is not authorized to connect.
Reserved = 6
6-255 are reserved.
Trait Implementations§
Source§impl Clone for ConnectReturnCode
impl Clone for ConnectReturnCode
Source§fn clone(&self) -> ConnectReturnCode
fn clone(&self) -> ConnectReturnCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConnectReturnCode
impl Debug for ConnectReturnCode
Source§impl Default for ConnectReturnCode
impl Default for ConnectReturnCode
Source§fn default() -> ConnectReturnCode
fn default() -> ConnectReturnCode
Returns the “default value” for a type. Read more
Source§impl From<u8> for ConnectReturnCode
impl From<u8> for ConnectReturnCode
Source§impl PartialEq for ConnectReturnCode
impl PartialEq for ConnectReturnCode
impl Copy for ConnectReturnCode
impl Eq for ConnectReturnCode
impl StructuralPartialEq for ConnectReturnCode
Auto Trait Implementations§
impl Freeze for ConnectReturnCode
impl RefUnwindSafe for ConnectReturnCode
impl Send for ConnectReturnCode
impl Sync for ConnectReturnCode
impl Unpin for ConnectReturnCode
impl UnwindSafe for ConnectReturnCode
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