pub struct MqttConnector<A, T> { /* private fields */ }
Expand description

Mqtt client connector

Implementations

Create new mqtt connector

Create new client and provide client id

The handling of the Session state.

A time interval measured in seconds.

keep-alive is set to 30 seconds by default.

Will Message be stored on the Server and associated with the Network Connection.

by default last will value is not set

Username can be used by the Server for authentication and authorization.

Password can be used by the Server for authentication and authorization.

Set max send packets number

Number of in-flight outgoing publish packets. By default receive max is set to 16 packets. To disable in-flight limit set value to 0.

Set max receive packets number

Number of in-flight incoming publish packets. By default receive max is set to 16 packets. To disable in-flight limit set value to 0.

Max incoming packet size.

To disable max size limit set value to 0.

Update connect packet

Set handshake timeout.

Handshake includes connect packet and response connect-ack. By default handshake timeuot is disabled.

Set client connection disconnect timeout.

Defines a timeout for disconnect connection. If a disconnect procedure does not complete within this time, the connection get dropped.

To disable timeout set value to 0.

By default disconnect timeout is set to 3 seconds.

Set memory pool.

Use specified memory pool for memory allocations. By default P5 memory pool is used.

Use custom connector

Connect to mqtt server

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

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more