pub type igraph_progress_handler_t = Option<unsafe extern "C" fn(message: *const c_char, percent: igraph_real_t, data: *mut c_void) -> igraph_error_t>;Expand description
\typedef igraph_progress_handler_t \brief Type of progress handler functions
This is the type of the igraph progress handler functions. There is currently one such predefined function, \ref igraph_progress_handler_stderr(), but the user can write and set up more sophisticated ones. \param message A string describing the function or algorithm that is reporting the progress. Current igraph functions always use the name \p message argument if reporting from the same function. \param percent Numeric, the percentage that was completed by the algorithm or function. \param data User-defined data. Current igraph functions that report progress pass a null pointer here. Users can write their own progress handlers and functions with progress reporting, and then pass some meaningfull context here. \return If the return value of the progress handler is not \c IGRAPH_SUCCESS, then \ref igraph_progress() returns the error code from the progress handler intact. The \ref IGRAPH_PROGRESS() macro also frees all allocated memory.
Aliased Type§
pub enum igraph_progress_handler_t {
None,
Some(unsafe extern "C" fn(*const i8, f64, *mut c_void) -> u32),
}