Struct ntex_mqtt::v5::client::MqttConnector[][src]

pub struct MqttConnector<A, T> { /* fields omitted */ }
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

Set auth-method and auth-data for connect packet.

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

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

Max incoming packet size.

To disable max size limit set value to 0.

Set receive max

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.

Update connect user properties

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

Performs the conversion.

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

Performs the conversion.

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