pub struct MqttConnectionSettings { /* private fields */ }
Expand description
All the settings required to establish an MQTT connection.
Implementations§
Source§impl MqttConnectionSettings
Auto-generated by derive_getters::Getters
.
impl MqttConnectionSettings
Auto-generated by derive_getters::Getters
.
Sourcepub fn keep_alive(&self) -> &Duration
pub fn keep_alive(&self) -> &Duration
Max time between communications
Sourcepub fn receive_max(&self) -> u16
pub fn receive_max(&self) -> u16
Max number of in-flight Quality of Service 1 and 2 messages
Sourcepub fn receive_packet_size_max(&self) -> &Option<u32>
pub fn receive_packet_size_max(&self) -> &Option<u32>
Max size of a received packet
Sourcepub fn session_expiry(&self) -> &Duration
pub fn session_expiry(&self) -> &Duration
Session Expiry Interval
Sourcepub fn connection_timeout(&self) -> &Duration
pub fn connection_timeout(&self) -> &Duration
Connection timeout
Sourcepub fn clean_start(&self) -> bool
pub fn clean_start(&self) -> bool
Clean start
Sourcepub fn password_file(&self) -> &Option<String>
pub fn password_file(&self) -> &Option<String>
Path to a file containing the MQTT password
Sourcepub fn cert_file(&self) -> &Option<String>
pub fn cert_file(&self) -> &Option<String>
Path to PEM file used to establish X509 client authentication
Sourcepub fn key_file(&self) -> &Option<String>
pub fn key_file(&self) -> &Option<String>
Path to a file containing a key used to establish X509 client authentication
Sourcepub fn key_password_file(&self) -> &Option<String>
pub fn key_password_file(&self) -> &Option<String>
Path to a file containing the password used to decrypt the Key
Trait Implementations§
Source§impl Clone for MqttConnectionSettings
impl Clone for MqttConnectionSettings
Source§fn clone(&self) -> MqttConnectionSettings
fn clone(&self) -> MqttConnectionSettings
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 Debug for MqttConnectionSettings
impl Debug for MqttConnectionSettings
Auto Trait Implementations§
impl Freeze for MqttConnectionSettings
impl RefUnwindSafe for MqttConnectionSettings
impl Send for MqttConnectionSettings
impl Sync for MqttConnectionSettings
impl Unpin for MqttConnectionSettings
impl UnwindSafe for MqttConnectionSettings
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