pub struct MqttClientConfiguration<'a> {
Show 21 fields pub protocol_version: Option<MqttProtocolVersion>, pub client_id: Option<&'a str>, pub connection_refresh_interval: Duration, pub keep_alive_interval: Option<Duration>, pub reconnect_timeout: Option<Duration>, pub network_timeout: Duration, pub lwt: Option<LwtConfiguration<'a>>, pub disable_clean_session: bool, pub task_prio: u8, pub task_stack: usize, pub buffer_size: usize, pub out_buffer_size: usize, pub username: Option<&'a str>, pub password: Option<&'a str>, pub use_global_ca_store: bool, pub skip_cert_common_name_check: bool, pub crt_bundle_attach: Option<unsafe extern "C" fn(conf: *mut c_void) -> esp_err_t>, pub server_certificate: Option<X509<'static>>, pub client_certificate: Option<X509<'static>>, pub private_key: Option<X509<'static>>, pub private_key_password: Option<&'a str>,
}

Fields§

§protocol_version: Option<MqttProtocolVersion>§client_id: Option<&'a str>§connection_refresh_interval: Duration§keep_alive_interval: Option<Duration>§reconnect_timeout: Option<Duration>§network_timeout: Duration§lwt: Option<LwtConfiguration<'a>>§disable_clean_session: bool§task_prio: u8§task_stack: usize§buffer_size: usize§out_buffer_size: usize§username: Option<&'a str>§password: Option<&'a str>§use_global_ca_store: bool§skip_cert_common_name_check: bool§crt_bundle_attach: Option<unsafe extern "C" fn(conf: *mut c_void) -> esp_err_t>§server_certificate: Option<X509<'static>>§client_certificate: Option<X509<'static>>§private_key: Option<X509<'static>>§private_key_password: Option<&'a str>

Trait Implementations§

source§

impl<'a> Debug for MqttClientConfiguration<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> Default for MqttClientConfiguration<'a>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'a> TryFrom<&'a MqttClientConfiguration<'a>> for (esp_mqtt_client_config_t, RawCstrs, Option<TlsPsk>)

§

type Error = EspError

The type returned in the event of a conversion error.
source§

fn try_from(conf: &'a MqttClientConfiguration<'a>) -> Result<Self, EspError>

Performs the conversion.

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for MqttClientConfiguration<'a>

§

impl<'a> Send for MqttClientConfiguration<'a>

§

impl<'a> Sync for MqttClientConfiguration<'a>

§

impl<'a> Unpin for MqttClientConfiguration<'a>

§

impl<'a> UnwindSafe for MqttClientConfiguration<'a>

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.