Struct mqtt_async_client::client::Publish[][src]

pub struct Publish { /* fields omitted */ }
Expand description

Arguments for a publish operation.

Implementations

Construct a new instance.

Returns the topic name of this instance.

Returns the payload data of this instance.

Returns the QoS level configured.

Set MQTT quality of service.

The default is QoS::AtMostOnce.

Set value of the retain flag.

The default is false.

See MQTT 3.1.1 section 3.3.1.3 http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/errata01/os/mqtt-v3.1.1-errata01-os-complete.html#_Toc385349265

Returns the retain flag value configured.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.