Enum mqtt3::ConnectReturnCode [] [src]

pub enum ConnectReturnCode {
    Accepted,
    RefusedProtocolVersion,
    RefusedIdentifierRejected,
    ServerUnavailable,
    BadUsernamePassword,
    NotAuthorized,
}

Variants

AcceptedRefusedProtocolVersionRefusedIdentifierRejectedServerUnavailableBadUsernamePasswordNotAuthorized

Methods

impl ConnectReturnCode
[src]

fn to_u8(&self) -> u8

fn from_u8(byte: u8) -> Result<ConnectReturnCode>

Trait Implementations

impl PartialEq for ConnectReturnCode
[src]

fn eq(&self, __arg_0: &ConnectReturnCode) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.

impl Copy for ConnectReturnCode
[src]

impl Clone for ConnectReturnCode
[src]

fn clone(&self) -> ConnectReturnCode

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Debug for ConnectReturnCode
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.