Enum mqtt::control::variable_header::connect_ret_code::ConnectReturnCode [] [src]

pub enum ConnectReturnCode {
    ConnectionAccepted,
    UnacceptableProtocolVersion,
    IdentifierRejected,
    ServiceUnavailable,
    BadUserNameOrPassword,
    NotAuthorized,
    Reserved(u8),
}

Variants

ConnectionAcceptedUnacceptableProtocolVersionIdentifierRejectedServiceUnavailableBadUserNameOrPasswordNotAuthorizedReserved(u8)

Methods

impl ConnectReturnCode
[src]

fn to_u8(&self) -> u8

fn from_u8(code: u8) -> ConnectReturnCode

Trait Implementations

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 Copy for ConnectReturnCode
[src]

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, __arg_0: &ConnectReturnCode) -> bool

This method tests for !=.

impl Eq for ConnectReturnCode
[src]

impl Debug for ConnectReturnCode
[src]

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

Formats the value using the given formatter.

impl<'a> Encodable<'a> for ConnectReturnCode
[src]

type Err = VariableHeaderError

fn encode<W: Write>(&self, writer: &mut W) -> Result<()VariableHeaderError>

fn encoded_length(&self) -> u32

impl<'a> Decodable<'a> for ConnectReturnCode
[src]

type Err = VariableHeaderError

type Cond = ()

fn decode_with<R: Read>(reader: &mut R, _rest: Option<()>) -> Result<ConnectReturnCodeVariableHeaderError>

fn decode<R: Read>(reader: &mut R) -> Result<Self, Self::Err>