Struct ntex_mqtt::v3::Selector

source ·
pub struct Selector<Err, InitErr> { /* private fields */ }
Expand description

Mqtt server selector

Selector allows to choose different mqtt server impls depends on connectt packet.

Implementations

Set handshake timeout.

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

Set max inbound frame size.

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

Add server variant

Trait Implementations

Responses given by the service
Errors produced by the service
Errors produced while building a service.
The Service value created by this factory
The future of the ServiceFactory instance.
Create and return a new service value asynchronously.
Map this service’s output to a different type, returning a new service of the resulting type. Read more
Map this service’s error to a different error, returning a new service.
Map this factory’s init error to a different error, returning a new service.
Responses given by the service
Errors produced by the service
Errors produced while building a service.
The Service value created by this factory
The future of the ServiceFactory instance.
Create and return a new service value asynchronously.
Map this service’s output to a different type, returning a new service of the resulting type. Read more
Map this service’s error to a different error, returning a new service.
Map this factory’s init error to a different error, returning a new service.
Responses given by the service
Errors produced by the service
Errors produced while building a service.
The Service value created by this factory
The future of the ServiceFactory instance.
Create and return a new service value asynchronously.
Map this service’s output to a different type, returning a new service of the resulting type. Read more
Map this service’s error to a different error, returning a new service.
Map this factory’s init error to a different error, returning a new service.

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.

Calls U::from(self).

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

Convert Self to a ServiceFactory
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.