enum MQTT::Protocol::SubAck::ReturnCode

Defined in:

mqtt/protocol/packets/suback.cr

Enum Members

QoS0 = 0_u8
QoS1 = 1_u8
QoS2 = 2_u8
Failure = 128_u8

Class Method Summary

Instance Method Summary

Class Method Detail

def self.from_int(value) #

[View source]

Instance Method Detail

def failure? #

Returns true if this enum value equals Failure


[View source]
def qo_s0? #

Returns true if this enum value equals QoS0


[View source]
def qo_s1? #

Returns true if this enum value equals QoS1


[View source]
def qo_s2? #

Returns true if this enum value equals QoS2


[View source]