#[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: c_int,
pub disable_keepalive: bool,
pub protocol_ver: esp_mqtt_protocol_ver_t,
pub message_retransmit_timeout: c_int,
}
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: c_int
< 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: esp_mqtt_protocol_ver_t
< MQTT protocol version used for connection.
message_retransmit_timeout: c_int
< 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
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
)