Struct machinery_api::foundation::CrashRecoveryApi[][src]

#[repr(C)]
pub struct CrashRecoveryApi { pub create: Option<unsafe extern "C" fn(a: *mut AllocatorI, recovery_path: *const c_char) -> *mut CrashRecoveryO>, pub destroy: Option<unsafe extern "C" fn(cr: *mut CrashRecoveryO)>, pub start_recording: Option<unsafe extern "C" fn(cr: *mut CrashRecoveryO, project: *const c_char, tt: *mut TheTruthO, root: TtIdT)>, pub stop_recording: Option<unsafe extern "C" fn(cr: *mut CrashRecoveryO)>, pub update: Option<unsafe extern "C" fn(cr: *mut CrashRecoveryO)>, pub can_recover: Option<unsafe extern "C" fn(cr: *mut CrashRecoveryO, ta: *mut TempAllocatorI) -> CrashRecoveryCanRecoverResultT>, pub recover: Option<unsafe extern "C" fn(cr: *mut CrashRecoveryO, rd: CrashRecoveryCanRecoverResultT, tt: *mut TheTruthO)>, pub delete_physical_file: Option<unsafe extern "C" fn(cr: *mut CrashRecoveryO)>, }

Fields

create: Option<unsafe extern "C" fn(a: *mut AllocatorI, recovery_path: *const c_char) -> *mut CrashRecoveryO>destroy: Option<unsafe extern "C" fn(cr: *mut CrashRecoveryO)>start_recording: Option<unsafe extern "C" fn(cr: *mut CrashRecoveryO, project: *const c_char, tt: *mut TheTruthO, root: TtIdT)>stop_recording: Option<unsafe extern "C" fn(cr: *mut CrashRecoveryO)>update: Option<unsafe extern "C" fn(cr: *mut CrashRecoveryO)>can_recover: Option<unsafe extern "C" fn(cr: *mut CrashRecoveryO, ta: *mut TempAllocatorI) -> CrashRecoveryCanRecoverResultT>recover: Option<unsafe extern "C" fn(cr: *mut CrashRecoveryO, rd: CrashRecoveryCanRecoverResultT, tt: *mut TheTruthO)>delete_physical_file: Option<unsafe extern "C" fn(cr: *mut CrashRecoveryO)>

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.