#[repr(C)]pub struct tm_collaboration_api {Show 19 fields
pub create: Option<unsafe extern "C" fn(*mut tm_allocator_i, *const tm_collaboration_config_t) -> *mut tm_collaboration_o>,
pub destroy: Option<unsafe extern "C" fn(*mut tm_collaboration_o)>,
pub status: Option<unsafe extern "C" fn(*const tm_collaboration_o) -> i32>,
pub is_downloading: Option<unsafe extern "C" fn(*const tm_collaboration_o, *mut u64, *mut u64) -> bool>,
pub set_session: Option<unsafe extern "C" fn(*mut tm_collaboration_o, *const tm_collaboration_session_i)>,
pub session: Option<unsafe extern "C" fn(*mut tm_collaboration_o) -> *mut tm_collaboration_session_i>,
pub disconnect: Option<unsafe extern "C" fn(*mut tm_collaboration_o)>,
pub update: Option<unsafe extern "C" fn(*mut tm_collaboration_o)>,
pub handle: Option<unsafe extern "C" fn(*const tm_collaboration_o) -> *const i8>,
pub set_handle: Option<unsafe extern "C" fn(*mut tm_collaboration_o, *mut i8)>,
pub host_handle: Option<unsafe extern "C" fn(*const tm_collaboration_o) -> *const i8>,
pub num_clients: Option<unsafe extern "C" fn(*const tm_collaboration_o) -> u32>,
pub client_handle: Option<unsafe extern "C" fn(*const tm_collaboration_o, u32) -> *const i8>,
pub all_handles: Option<unsafe extern "C" fn(*const tm_collaboration_o, *mut tm_temp_allocator_i) -> *mut *const i8>,
pub send_chat: Option<unsafe extern "C" fn(*mut tm_collaboration_o, *const i8)>,
pub num_chat_messages: Option<unsafe extern "C" fn(*const tm_collaboration_o) -> u32>,
pub chat_message: Option<unsafe extern "C" fn(*const tm_collaboration_o, u32, *mut *const i8) -> *const i8>,
pub resynchronize_state: Option<unsafe extern "C" fn(*mut tm_collaboration_o, *mut tm_the_truth_o)>,
pub send_test_packages: Option<unsafe extern "C" fn(*mut tm_collaboration_o, u64, u32)>,
}Fields§
§create: Option<unsafe extern "C" fn(*mut tm_allocator_i, *const tm_collaboration_config_t) -> *mut tm_collaboration_o>§destroy: Option<unsafe extern "C" fn(*mut tm_collaboration_o)>§status: Option<unsafe extern "C" fn(*const tm_collaboration_o) -> i32>§is_downloading: Option<unsafe extern "C" fn(*const tm_collaboration_o, *mut u64, *mut u64) -> bool>§set_session: Option<unsafe extern "C" fn(*mut tm_collaboration_o, *const tm_collaboration_session_i)>§session: Option<unsafe extern "C" fn(*mut tm_collaboration_o) -> *mut tm_collaboration_session_i>§disconnect: Option<unsafe extern "C" fn(*mut tm_collaboration_o)>§update: Option<unsafe extern "C" fn(*mut tm_collaboration_o)>§handle: Option<unsafe extern "C" fn(*const tm_collaboration_o) -> *const i8>§set_handle: Option<unsafe extern "C" fn(*mut tm_collaboration_o, *mut i8)>§host_handle: Option<unsafe extern "C" fn(*const tm_collaboration_o) -> *const i8>§num_clients: Option<unsafe extern "C" fn(*const tm_collaboration_o) -> u32>§client_handle: Option<unsafe extern "C" fn(*const tm_collaboration_o, u32) -> *const i8>§all_handles: Option<unsafe extern "C" fn(*const tm_collaboration_o, *mut tm_temp_allocator_i) -> *mut *const i8>§send_chat: Option<unsafe extern "C" fn(*mut tm_collaboration_o, *const i8)>§num_chat_messages: Option<unsafe extern "C" fn(*const tm_collaboration_o) -> u32>§chat_message: Option<unsafe extern "C" fn(*const tm_collaboration_o, u32, *mut *const i8) -> *const i8>§resynchronize_state: Option<unsafe extern "C" fn(*mut tm_collaboration_o, *mut tm_the_truth_o)>§send_test_packages: Option<unsafe extern "C" fn(*mut tm_collaboration_o, u64, u32)>Trait Implementations§
Source§impl Clone for tm_collaboration_api
impl Clone for tm_collaboration_api
Source§fn clone(&self) -> tm_collaboration_api
fn clone(&self) -> tm_collaboration_api
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 moreimpl Copy for tm_collaboration_api
Auto Trait Implementations§
impl Freeze for tm_collaboration_api
impl RefUnwindSafe for tm_collaboration_api
impl Send for tm_collaboration_api
impl Sync for tm_collaboration_api
impl Unpin for tm_collaboration_api
impl UnwindSafe for tm_collaboration_api
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