Type Alias s2n_tls_sys::s2n_clock_time_nanoseconds

source ·
pub type s2n_clock_time_nanoseconds = Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut u64) -> c_int>;
Expand description

Callback function type used to get the system time.

@param void* A pointer to arbitrary data for use within the callback @param uint64_t* A pointer that the callback will set to the time in nanoseconds The function should return 0 on success and -1 on failure.

Aliased Type§

enum s2n_clock_time_nanoseconds {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut u64) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.