pub type MaaAPICallback = Option<unsafe extern "C" fn(msg: MaaStringView, details_json: MaaStringView, callback_arg: MaaTransparentArg)>;
Available on crate feature internal only.
Expand description

@brief The callback function type.

@param msg The message. See MaaMsg.h @param details_json The details in JSON format. See doc in MaaMsg.h

Aliased Type§

enum MaaAPICallback {
    None,
    Some(unsafe extern "C" fn(_: *const i8, _: *const i8, _: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *const i8, _: *const i8, _: *mut c_void))

Some value of type T.