Struct esp_idf_svc::tls::Config

source ·
pub struct Config<'a> {
Show 15 fields pub alpn_protos: Option<&'a [&'a str]>, pub ca_cert: Option<X509<'a>>, pub client_cert: Option<X509<'a>>, pub client_key: Option<X509<'a>>, pub client_key_password: Option<&'a str>, pub non_block: bool, pub use_secure_element: bool, pub timeout_ms: u32, pub use_global_ca_store: bool, pub common_name: Option<&'a str>, pub skip_common_name: bool, pub keep_alive_cfg: Option<KeepAliveConfig>, pub psk_hint_key: Option<PskHintKey<'a>>, pub use_crt_bundle_attach: bool, pub is_plain_tcp: bool,
}

Fields§

§alpn_protos: Option<&'a [&'a str]>

up to 9 ALPNs allowed, with avg 10 bytes for each name

§ca_cert: Option<X509<'a>>§client_cert: Option<X509<'a>>§client_key: Option<X509<'a>>§client_key_password: Option<&'a str>§non_block: bool§use_secure_element: bool§timeout_ms: u32§use_global_ca_store: bool§common_name: Option<&'a str>§skip_common_name: bool§keep_alive_cfg: Option<KeepAliveConfig>§psk_hint_key: Option<PskHintKey<'a>>§use_crt_bundle_attach: bool

whether to use esp_crt_bundle_attach, see https://docs.espressif.com/projects/esp-idf/en/latest/esp32s2/api-reference/protocols/esp_crt_bundle.html

§is_plain_tcp: bool

Implementations§

source§

impl<'a> Config<'a>

source

pub const fn new() -> Self

Trait Implementations§

source§

impl<'a> Default for Config<'a>

source§

fn default() -> Self

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

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Config<'a>

§

impl<'a> Send for Config<'a>

§

impl<'a> Sync for Config<'a>

§

impl<'a> Unpin for Config<'a>

§

impl<'a> UnwindSafe for Config<'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.