struct MQTT::Client::Message
- MQTT::Client::Message
- Struct
- Value
- Object
Defined in:
mqtt-client/message.crConstructors
Instance Method Summary
- #body : Bytes
- #clone
- #copy_with(topic _topic = @topic, body _body = @body, qos _qos = @qos, retain _retain = @retain, dup _dup = @dup)
-
#dup : Bool
Returns a shallow copy of this object.
- #qos : UInt8
- #retain : Bool
- #topic : String
Constructor Detail
def self.new(topic : String, body : Bytes, qos : UInt8, retain : Bool = false, dup : Bool = false)
#
Instance Method Detail
def copy_with(topic _topic = @topic, body _body = @body, qos _qos = @qos, retain _retain = @retain, dup _dup = @dup)
#
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.