struct MQTT::Client::ReceivedMessage
- MQTT::Client::ReceivedMessage
- Struct
- Value
- Object
Defined in:
mqtt-client/message.crConstructors
Instance Method Summary
- #ack
- #body : Bytes
-
#dup : Bool
Returns a shallow copy of this object.
- #qos : UInt8
- #retain : Bool
- #topic : String
Constructor Detail
def self.new(connection : Connection, packet_id : UInt16, topic : String, body : Bytes, qos : UInt8, retain : Bool, dup : Bool)
#
Instance Method Detail
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.