Type Alias GChildWatchFunc

Source
pub type GChildWatchFunc = Option<unsafe extern "C" fn(pid: GPid, wait_status: gint, user_data: gpointer)>;
Expand description

GChildWatchFunc: @pid: the process id of the child process @wait_status: Status information about the child process, encoded in a platform-specific manner @user_data: user data passed to g_child_watch_add()

Prototype of a #GChildWatchSource callback, called when a child process has exited.

To interpret @wait_status, see the documentation for g_spawn_check_wait_status(). In particular, on Unix platforms, note that it is usually not equal to the integer passed to exit() or returned from main().

Aliased Type§

enum GChildWatchFunc {
    None,
    Some(unsafe extern "C" fn(i32, i32, *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.