pub struct MqttConfig {
pub host: String,
pub port: u16,
pub username: Option<String>,
pub password_file: Option<PathBuf>,
pub client_id: String,
pub base_topic: String,
pub keepalive: u64,
}Expand description
The broker.
Fields§
§host: StringHost name.
port: u16Port.
username: Option<String>User name.
password_file: Option<PathBuf>A file holding the password (so it is not in this file).
client_id: StringClient id.
base_topic: StringEvery topic starts with this.
keepalive: u64Keep-alive, seconds.
Trait Implementations§
Source§impl Clone for MqttConfig
impl Clone for MqttConfig
Source§impl Debug for MqttConfig
impl Debug for MqttConfig
Source§impl Default for MqttConfig
impl Default for MqttConfig
Source§impl<'de> Deserialize<'de> for MqttConfigwhere
MqttConfig: Default,
impl<'de> Deserialize<'de> for MqttConfigwhere
MqttConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MqttConfig
impl RefUnwindSafe for MqttConfig
impl Send for MqttConfig
impl Sync for MqttConfig
impl Unpin for MqttConfig
impl UnsafeUnpin for MqttConfig
impl UnwindSafe for MqttConfig
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