rust-mqtt 0.5.1

MQTT client for embedded and non-embedded environments
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::config::{KeepAlive, SessionExpiryInterval};

/// Negotiated configuration valid for the duration of a connection.
#[derive(Debug, Clone, Copy, Default)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub struct Config {
    /// The negotiated [`KeepAlive`] interval in seconds allowed to expire between sending two packets without the connection being closed.
    pub keep_alive: KeepAlive,

    /// The negotiated [`SessionExpiryInterval`] after the connection has been closed.
    pub session_expiry_interval: SessionExpiryInterval,
}