enum MQTT::Protocol::Connack::ReturnCode

Defined in:

mqtt/protocol/packets/connack.cr

Enum Members

Accepted = 0_u8
UnacceptableProtocolVersion = 1_u8
IdentifierRejected = 2_u8
ServerUnavailable = 3_u8
BadCredentials = 4_u8
NotAuthorized = 5_u8

Instance Method Summary

Instance Method Detail

def accepted? #

Returns true if this enum value equals Accepted


[View source]
def bad_credentials? #

Returns true if this enum value equals BadCredentials


[View source]
def identifier_rejected? #

Returns true if this enum value equals IdentifierRejected


[View source]
def not_authorized? #

Returns true if this enum value equals NotAuthorized


[View source]
def server_unavailable? #

Returns true if this enum value equals ServerUnavailable


[View source]
def unacceptable_protocol_version? #

Returns true if this enum value equals UnacceptableProtocolVersion


[View source]