Struct machinery_api::foundation::TaskSystemApi[][src]

#[repr(C)]
pub struct TaskSystemApi { pub run_task: Option<unsafe extern "C" fn(f: Option<unsafe extern "C" fn(data: *mut c_void, id: u64)>, data: *mut c_void, debug_name: *const c_char) -> u64>, pub is_task_done: Option<unsafe extern "C" fn(id: u64) -> bool>, pub is_task_done_else_assist: Option<unsafe extern "C" fn(id: u64) -> bool>, pub cancel_task: Option<unsafe extern "C" fn(id: u64)>, pub is_task_canceled: Option<unsafe extern "C" fn(id: u64) -> bool>, }

Fields

run_task: Option<unsafe extern "C" fn(f: Option<unsafe extern "C" fn(data: *mut c_void, id: u64)>, data: *mut c_void, debug_name: *const c_char) -> u64>is_task_done: Option<unsafe extern "C" fn(id: u64) -> bool>is_task_done_else_assist: Option<unsafe extern "C" fn(id: u64) -> bool>cancel_task: Option<unsafe extern "C" fn(id: u64)>is_task_canceled: Option<unsafe extern "C" fn(id: u64) -> bool>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.