Struct mbedtls_ssl_config

Source
#[repr(C)]
pub struct mbedtls_ssl_config {
Show 31 fields pub private_max_tls_version: mbedtls_ssl_protocol_version, pub private_min_tls_version: mbedtls_ssl_protocol_version, pub private_endpoint: u8, pub private_transport: u8, pub private_authmode: u8, pub private_allow_legacy_renegotiation: u8, pub private_mfl_code: u8, pub private_anti_replay: u8, pub private_cert_req_ca_list: u8, pub private_respect_cli_pref: u8, pub private_ciphersuite_list: *const c_int, pub private_f_dbg: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: c_int, arg3: *const c_char, arg4: c_int, arg5: *const c_char)>, pub private_p_dbg: *mut c_void, pub private_f_rng: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_uchar, arg3: usize) -> c_int>, pub private_p_rng: *mut c_void, pub private_f_get_cache: mbedtls_ssl_cache_get_t, pub private_f_set_cache: mbedtls_ssl_cache_set_t, pub private_p_cache: *mut c_void, pub private_f_psk: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut mbedtls_ssl_context, arg3: *const c_uchar, arg4: usize) -> c_int>, pub private_p_psk: *mut c_void, pub private_group_list: *const u16, pub private_psk: *mut c_uchar, pub private_psk_len: usize, pub private_psk_identity: *mut c_uchar, pub private_psk_identity_len: usize, pub private_read_timeout: u32, pub private_hs_timeout_min: u32, pub private_hs_timeout_max: u32, pub private_badmac_limit: c_uint, pub private_user_data: mbedtls_ssl_user_data_t, pub private_f_cert_cb: mbedtls_ssl_hs_cb_t,
}

Fields§

§private_max_tls_version: mbedtls_ssl_protocol_version§private_min_tls_version: mbedtls_ssl_protocol_version§private_endpoint: u8§private_transport: u8§private_authmode: u8§private_allow_legacy_renegotiation: u8§private_mfl_code: u8§private_anti_replay: u8§private_cert_req_ca_list: u8§private_respect_cli_pref: u8§private_ciphersuite_list: *const c_int§private_f_dbg: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: c_int, arg3: *const c_char, arg4: c_int, arg5: *const c_char)>§private_p_dbg: *mut c_void§private_f_rng: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_uchar, arg3: usize) -> c_int>§private_p_rng: *mut c_void§private_f_get_cache: mbedtls_ssl_cache_get_t§private_f_set_cache: mbedtls_ssl_cache_set_t§private_p_cache: *mut c_void§private_f_psk: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut mbedtls_ssl_context, arg3: *const c_uchar, arg4: usize) -> c_int>§private_p_psk: *mut c_void§private_group_list: *const u16§private_psk: *mut c_uchar§private_psk_len: usize§private_psk_identity: *mut c_uchar§private_psk_identity_len: usize§private_read_timeout: u32§private_hs_timeout_min: u32§private_hs_timeout_max: u32§private_badmac_limit: c_uint§private_user_data: mbedtls_ssl_user_data_t§private_f_cert_cb: mbedtls_ssl_hs_cb_t

Trait Implementations§

Source§

impl Clone for mbedtls_ssl_config

Source§

fn clone(&self) -> mbedtls_ssl_config

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for mbedtls_ssl_config

Source§

fn default() -> Self

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

impl Copy for mbedtls_ssl_config

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.