Struct esp_idf_svc::hal::sys::esp_mqtt_client_config_t_session_t
source · #[repr(C)]pub struct esp_mqtt_client_config_t_session_t {
pub last_will: esp_mqtt_client_config_t_session_t_last_will_t,
pub disable_clean_session: bool,
pub keepalive: i32,
pub disable_keepalive: bool,
pub protocol_ver: u32,
pub message_retransmit_timeout: i32,
}
Expand description
MQTT Session related configuration
Fields§
§last_will: esp_mqtt_client_config_t_session_t_last_will_t
< Last will configuration
disable_clean_session: bool
< MQTT clean session, default clean_session is true
keepalive: i32
< MQTT keepalive, default is 120 seconds When configuring this value, keep in mind that the client attempts to communicate with the broker at half the interval that is actually set. This conservative approach allows for more attempts before the broker’s timeout occurs
disable_keepalive: bool
< Set disable_keepalive=true
to turn off keep-alive mechanism, keepalive is active
by default. Note: setting the config value keepalive
to 0
doesn’t disable
keepalive feature, but uses a default keepalive period
protocol_ver: u32
< MQTT protocol version used for connection.
message_retransmit_timeout: i32
< timeout for retransmitting of failed packet
Trait Implementations§
source§impl Clone for esp_mqtt_client_config_t_session_t
impl Clone for esp_mqtt_client_config_t_session_t
source§fn clone(&self) -> esp_mqtt_client_config_t_session_t
fn clone(&self) -> esp_mqtt_client_config_t_session_t
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for esp_mqtt_client_config_t_session_t
impl Debug for esp_mqtt_client_config_t_session_t
source§impl Default for esp_mqtt_client_config_t_session_t
impl Default for esp_mqtt_client_config_t_session_t
source§fn default() -> esp_mqtt_client_config_t_session_t
fn default() -> esp_mqtt_client_config_t_session_t
Returns the “default value” for a type. Read more
impl Copy for esp_mqtt_client_config_t_session_t
Auto Trait Implementations§
impl Freeze for esp_mqtt_client_config_t_session_t
impl RefUnwindSafe for esp_mqtt_client_config_t_session_t
impl !Send for esp_mqtt_client_config_t_session_t
impl !Sync for esp_mqtt_client_config_t_session_t
impl Unpin for esp_mqtt_client_config_t_session_t
impl UnwindSafe for esp_mqtt_client_config_t_session_t
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)