Struct ntex_mqtt::v3::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
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.
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.
pub fn connector<U, F>(self, connector: F) -> MqttConnector<A, U> where
F: IntoService<U, Connect<A>>,
U: Service<Connect<A>, Error = ConnectError>,
IoBoxed: From<U::Response>,
pub fn connector<U, F>(self, connector: F) -> MqttConnector<A, U> where
F: IntoService<U, Connect<A>>,
U: Service<Connect<A>, Error = ConnectError>,
IoBoxed: From<U::Response>,
Use custom connector
impl<A, T> MqttConnector<A, T> where
A: Address + Clone,
T: Service<Connect<A>, Error = ConnectError>,
IoBoxed: From<T::Response>,
impl<A, T> MqttConnector<A, T> where
A: Address + Clone,
T: Service<Connect<A>, Error = ConnectError>,
IoBoxed: From<T::Response>,
Auto Trait Implementations
impl<A, T> !RefUnwindSafe for MqttConnector<A, T>
impl<A, T> !Send for MqttConnector<A, T>
impl<A, T> !Sync for MqttConnector<A, T>
impl<A, T> Unpin for MqttConnector<A, T> where
A: Unpin,
T: Unpin,
impl<A, T> !UnwindSafe for MqttConnector<A, T>
Blanket Implementations
Mutably borrows from an owned value. Read more
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