enum

MQTT::V5::RetainHandling

Inherits Enum / Comparable / Value / Object

MQTT-3.8.3.1. Controls whether retained messages are delivered when a subscription is made

Constants

SendAlways = 0_u8

send retained messages when the subscription is established

SendIfNew = 1_u8

only send them if the subscription did not already exist

Never = 2_u8

never send retained messages for this subscription

Instance methods

never?

Returns true if this enum value equals Never

Source
send_always?

Returns true if this enum value equals SendAlways

Source
send_if_new?

Returns true if this enum value equals SendIfNew

Source