Struct machinery_api::foundation::CollaborationConfigI[][src]

#[repr(C)]
pub struct CollaborationConfigI { pub tt: *mut TheTruthO, pub ud: *mut c_void, pub host_init: Option<unsafe extern "C" fn(ud: *mut c_void)>, pub client_init: Option<unsafe extern "C" fn(ud: *mut c_void)>, pub host_save_state: Option<unsafe extern "C" fn(ud: *mut c_void, carray: *mut *mut c_char, a: *mut AllocatorI)>, pub client_reset_truth: Option<unsafe extern "C" fn(ud: *mut c_void) -> *mut TheTruthO>, pub client_decompress_state: Option<unsafe extern "C" fn(app_ud: *mut c_void, state: *const c_char, size: u64, allocator: *mut AllocatorI) -> *mut c_char>, pub client_buffer_hashes: Option<unsafe extern "C" fn(ud: *mut c_void, state: *const c_char, size: u64, count: *mut u64) -> *const u64>, pub client_load_state: Option<unsafe extern "C" fn(ud: *mut c_void, state: *const c_char, size: u64) -> bool>, pub cache_dir: *const c_char, }

Fields

tt: *mut TheTruthOud: *mut c_voidhost_init: Option<unsafe extern "C" fn(ud: *mut c_void)>client_init: Option<unsafe extern "C" fn(ud: *mut c_void)>host_save_state: Option<unsafe extern "C" fn(ud: *mut c_void, carray: *mut *mut c_char, a: *mut AllocatorI)>client_reset_truth: Option<unsafe extern "C" fn(ud: *mut c_void) -> *mut TheTruthO>client_decompress_state: Option<unsafe extern "C" fn(app_ud: *mut c_void, state: *const c_char, size: u64, allocator: *mut AllocatorI) -> *mut c_char>client_buffer_hashes: Option<unsafe extern "C" fn(ud: *mut c_void, state: *const c_char, size: u64, count: *mut u64) -> *const u64>client_load_state: Option<unsafe extern "C" fn(ud: *mut c_void, state: *const c_char, size: u64) -> bool>cache_dir: *const c_char

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.