Type Alias esp_idf_sys::httpd_close_func_t

source ·
pub type httpd_close_func_t = Option<unsafe extern "C" fn(hd: httpd_handle_t, sockfd: c_int)>;
Expand description

@brief Function prototype for closing a session.

@note It’s possible that the socket descriptor is invalid at this point, the function is called for all terminated sessions. Ensure proper handling of return codes.

@param[in] hd server instance @param[in] sockfd session socket file descriptor

Aliased Type§

enum httpd_close_func_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.