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),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void) -> i32)

Some value of type T.