struct MQTT::Client::Message

Defined in:

mqtt-client/message.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(topic : String, body : Bytes, qos : UInt8, retain : Bool = false, dup : Bool = false) #

[View source]

Instance Method Detail

def body : Bytes #

def clone #

[View source]
def copy_with(topic _topic = @topic, body _body = @body, qos _qos = @qos, retain _retain = @retain, dup _dup = @dup) #

[View source]
def dup : Bool #
Description copied from struct Value

Returns a shallow copy of this object.

Because Value is a value type, this method returns self, which already involves a shallow copy of this object because value types are passed by value.


def qos : UInt8 #

def retain : Bool #

def topic : String #