Handler

Type Alias Handler 

Source
pub type Handler = ove_httpd_handler_t;
Expand description

Route handler callback.

This is the raw C function pointer type: fn(req: *mut ove_httpd_req_t, resp: *mut ove_httpd_resp_t) -> i32.

Aliased Type§

pub enum Handler {
    None,
    Some(unsafe extern "C" fn(*mut c_void, *mut c_void) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.