Type Alias esp_idf_sys::mbedtls_ssl_get_timer_t
source · pub type mbedtls_ssl_get_timer_t = Option<unsafe extern "C" fn(ctx: *mut c_void) -> c_int>;
Expand description
\brief Callback type: get status of timers/delays
\param ctx Context pointer
\return This callback must return: -1 if cancelled (fin_ms == 0), 0 if none of the delays have passed, 1 if only the intermediate delay has passed, 2 if the final delay has passed.
Aliased Type§
enum mbedtls_ssl_get_timer_t {
None,
Some(unsafe extern "C" fn(_: *mut c_void) -> i32),
}