pub struct MqttServer<St, C, Cn, P> { /* private fields */ }
Expand description

Mqtt Server

Implementations

Create server factory and provide handshake service

Set handshake timeout.

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

Set server 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 max inbound frame size.

If max size is set to 0, size is unlimited. By default max size is set to 0

Set receive max

Number of in-flight publish packets. By default receive max is set to 15 packets. To disable timeout set value to 0.

Number of topic aliases.

By default value is set to 32

Set server max qos setting.

By default max qos is not set.

Total size of in-flight messages.

By default total in-flight size is set to 64Kb

Service to handle control packets

All control packets are processed sequentially, max number of buffered control packets is 16.

Set service to handle publish packets and create mqtt server factory

Finish server configuration and create mqtt server factory

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