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
pub unsafe fn create(
&self,
a: *mut AllocatorI,
recovery_path: *const c_char
) -> *mut CrashRecoveryO
pub unsafe fn start_recording(
&self,
cr: *mut CrashRecoveryO,
project: *const c_char,
tt: *mut TheTruthO,
root: TtIdT
)
pub unsafe fn can_recover(
&self,
cr: *mut CrashRecoveryO,
ta: *mut TempAllocatorI
) -> CrashRecoveryCanRecoverResultT
pub unsafe fn recover(
&self,
cr: *mut CrashRecoveryO,
rd: CrashRecoveryCanRecoverResultT,
tt: *mut TheTruthO
)
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for CrashRecoveryApi
impl Send for CrashRecoveryApi
impl Sync for CrashRecoveryApi
impl Unpin for CrashRecoveryApi
impl UnwindSafe for CrashRecoveryApi
Blanket Implementations
Mutably borrows from an owned value. Read more