#[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§
Source§impl CrashRecoveryApi
impl CrashRecoveryApi
pub unsafe fn create( &self, a: *mut AllocatorI, recovery_path: *const c_char, ) -> *mut CrashRecoveryO
pub unsafe fn destroy(&self, cr: *mut CrashRecoveryO)
pub unsafe fn start_recording( &self, cr: *mut CrashRecoveryO, project: *const c_char, tt: *mut TheTruthO, root: TtIdT, )
pub unsafe fn stop_recording(&self, cr: *mut CrashRecoveryO)
pub unsafe fn update(&self, cr: *mut CrashRecoveryO)
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, )
pub unsafe fn delete_physical_file(&self, cr: *mut CrashRecoveryO)
Trait Implementations§
Source§impl Clone for CrashRecoveryApi
impl Clone for CrashRecoveryApi
Source§fn clone(&self) -> CrashRecoveryApi
fn clone(&self) -> CrashRecoveryApi
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for CrashRecoveryApi
impl Default for CrashRecoveryApi
Source§fn default() -> CrashRecoveryApi
fn default() -> CrashRecoveryApi
Returns the “default value” for a type. Read more
impl Copy for CrashRecoveryApi
Auto Trait Implementations§
impl Freeze for CrashRecoveryApi
impl RefUnwindSafe for CrashRecoveryApi
impl Send for CrashRecoveryApi
impl Sync for CrashRecoveryApi
impl Unpin for CrashRecoveryApi
impl UnwindSafe for CrashRecoveryApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more