Struct paho_mqtt::message::MessageBuilder [] [src]

pub struct MessageBuilder { /* fields omitted */ }

Builder to create a new Message

Methods

impl MessageBuilder
[src]

Create a new message builder.

Sets the topic for the message

Arguments

topic The topic on which the message should be published.

Sets the payload for the message

Arguments

payload The binary payload of the message

Sets the Quality of Service for the message.

Arguments

qos The quality of service for the message.

Sets whether or not the published message should be retained by the broker.

Arguments

retained Set true if the message should be retained by the broker, false if not.

Finalize the builder to create the message.

Trait Implementations

impl Debug for MessageBuilder
[src]

Formats the value using the given formatter.