pub struct MqttOptions {
pub user_name: Option<String>,
pub password: Option<String>,
pub keep_alive: Option<u16>,
}
Expand description
The options for setting up MQTT connection
Fields§
§user_name: Option<String>
User name
password: Option<String>
Password
keep_alive: Option<u16>
Keep alive time(in seconds)
Trait Implementations§
Source§impl Clone for MqttOptions
impl Clone for MqttOptions
Source§fn clone(&self) -> MqttOptions
fn clone(&self) -> MqttOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for MqttOptions
impl Default for MqttOptions
Source§fn default() -> MqttOptions
fn default() -> MqttOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MqttOptions
impl RefUnwindSafe for MqttOptions
impl Send for MqttOptions
impl Sync for MqttOptions
impl Unpin for MqttOptions
impl UnwindSafe for MqttOptions
Blanket Implementations§
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