Struct mqttrust_core::MqttOptions[][src]

pub struct MqttOptions<'a> { /* fields omitted */ }
Expand description

Options to configure the behaviour of mqtt connection

Lifetimes:

  • ’a: The lifetime of option fields, not referenced in any MQTT packets at any point
  • ’b: The lifetime of the packet fields, backed by a slice buffer

Implementations

New mqtt options

Broker address

Set number of seconds after which client should ping the broker if there is no other data exchange

Keep alive time

Client identifier

clean_session = true removes all the state from queues & instructs the broker to clean all the client state when client disconnects.

When set false, broker will hold the client state and performs pending operations on the client when reconnection with same client_id happens. Local queue state is also held to retransmit packets after reconnection.

Clean session

Username and password

Security options

Set number of concurrent in flight messages

Number of concurrent in flight messages

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 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.