struct

MQTT::Client::Message

Inherits Struct / Value / Object

Constructors

new(topic : String, body : Bytes, qos : UInt8, retain : Bool = false, dup : Bool = false)
Source

Instance methods

body
clone
Source
copy_with(topic _topic = @topic, body _body = @body, qos _qos = @qos, retain _retain = @retain, dup _dup = @dup)
Source
dup

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.

qos
retain
topic