pub struct MqttConnectionOptions {
pub uri: String,
pub connect_timeout_millis: u64,
pub reconnect_millis: u64,
pub client_id: Option<String>,
pub clean_session: bool,
}
Expand description
The connection options.
Fields§
§uri: String
Connection URI. Use mqtt|mqtts://username:password@host:port
format.
Default is mqtt://localhost
.
connect_timeout_millis: u64
Connection timeout in milliseconds.
Default or zero value is 3000
.
reconnect_millis: u64
Time in milliseconds from disconnection to reconnection.
Default or zero value is 1000
.
client_id: Option<String>
Client identifier. Use None
to generate a random client identifier.
clean_session: bool
Clean session flag.
Note: this is not stable.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MqttConnectionOptions
impl RefUnwindSafe for MqttConnectionOptions
impl Send for MqttConnectionOptions
impl Sync for MqttConnectionOptions
impl Unpin for MqttConnectionOptions
impl UnwindSafe for MqttConnectionOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more