struct
MQTT::Client::Publish
- MQTT::Client::Publish
- MQTT::Client::Packet
- Struct
- Value
- Object
Defined in:
mqtt-client/connection/packet.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
Instance methods inherited from struct MQTT::Client::Packet
initialize
initialize
Constructor methods inherited from struct MQTT::Client::Packet
new
new
Constructor Detail
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.